From 738d483f42f87977061d7823e92c3343aae1e515 Mon Sep 17 00:00:00 2001 From: Jaskaran Sarkaria Date: Sun, 31 Dec 2023 11:53:02 +0000 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=92=8D=20add=20timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/routes/about.spec.js | 1 + tests/routes/classes/beginners.spec.js | 1 + tests/routes/classes/wedding-rings.spec.js | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/routes/about.spec.js b/tests/routes/about.spec.js index 52268eb5..8ceda7b5 100644 --- a/tests/routes/about.spec.js +++ b/tests/routes/about.spec.js @@ -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 }); }); diff --git a/tests/routes/classes/beginners.spec.js b/tests/routes/classes/beginners.spec.js index f6c34d44..2daf93fb 100644 --- a/tests/routes/classes/beginners.spec.js +++ b/tests/routes/classes/beginners.spec.js @@ -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(); diff --git a/tests/routes/classes/wedding-rings.spec.js b/tests/routes/classes/wedding-rings.spec.js index 0b671d42..95fd5a02 100644 --- a/tests/routes/classes/wedding-rings.spec.js +++ b/tests/routes/classes/wedding-rings.spec.js @@ -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 }); });