Skip to content

Commit

Permalink
Fixed video test
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucaspains committed Dec 22, 2024
1 parent 11b2ad8 commit 3a09117
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/edit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ test('video media shows thumbnail', async ({ page, browserName, isMobile }) => {
await expect(page.locator("iframe"))
.toHaveAttribute("src", "https://www.youtube.com/embed/0YY7K7Xa5rE");

await page.getByTestId("topbar-single-button").click();

await page.goto('/');
await expect(page.getByTestId('recipe-image')).toHaveAttribute("src", "https://img.youtube.com/vi/0YY7K7Xa5rE/0.jpg")
});
Expand Down

0 comments on commit 3a09117

Please sign in to comment.