Skip to content

Commit

Permalink
test: 💍 add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Dec 31, 2023
1 parent 13a90c5 commit 738d483
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/routes/about.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import { expect, test } from "@playwright/test";

test("About Page", async ({ page }) => {
await page.goto("/about");
await page.waitForTimeout(1000);
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.1 });
});
1 change: 1 addition & 0 deletions tests/routes/classes/beginners.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { expect, test } from "@playwright/test";
test("Classes Beginners Page", async ({ page }) => {
await page.goto("/classes/beginners");

await page.waitForTimeout(1000);
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.3 });

await page.locator(".container > p > a >> nth=0").click();
Expand Down
1 change: 1 addition & 0 deletions tests/routes/classes/wedding-rings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import { expect, test } from "@playwright/test";

test("Classes Wedding Ring Page", async ({ page }) => {
await page.goto("/classes/wedding-rings");
await page.waitForTimeout(1000);
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.25 });
});

0 comments on commit 738d483

Please sign in to comment.