From d6e6497f87046178bf3349bfa0ed97ac6e2b4bae Mon Sep 17 00:00:00 2001 From: "Md. Nahid Hasan" <42797913+nahidthenh@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:52:19 +0600 Subject: [PATCH] Set WaitForNetworkIdle For Google Photos --- tests/elementor/google-photos.spec.js | 1 + tests/gutenberg/google-photos.spec.js | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/elementor/google-photos.spec.js b/tests/elementor/google-photos.spec.js index 1f6300e..09d4f9e 100644 --- a/tests/elementor/google-photos.spec.js +++ b/tests/elementor/google-photos.spec.js @@ -6,6 +6,7 @@ let slug = 'playwright-elementor/elementor-google-photos'; test.describe("Google Photos", () => { test.beforeEach(async ({ page }) => { await page.goto(slug); + await page.waitForLoadState('networkidle'); }); test('Google Photos Carousel', async ({ page }) => { diff --git a/tests/gutenberg/google-photos.spec.js b/tests/gutenberg/google-photos.spec.js index 0caa4ad..75ed137 100644 --- a/tests/gutenberg/google-photos.spec.js +++ b/tests/gutenberg/google-photos.spec.js @@ -6,6 +6,7 @@ let slug = 'playwright-elementor/gutenberg-google-photos'; test.describe("Google Photos", () => { test.beforeEach(async ({ page }) => { await page.goto(slug); + await page.waitForLoadState('networkidle'); }); test('Google Photos Carousel', async ({ page }) => {