From 0f0a6382473e04232be41c6ec4a430c011079368 Mon Sep 17 00:00:00 2001 From: Romit <85230081+romitg2@users.noreply.github.com> Date: Mon, 9 Mar 2026 17:45:47 +0530 Subject: [PATCH] fix: wait for networkidle in locale e2e tests to avoid hydration race condition (#28341) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- apps/web/playwright/locale.e2e.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/playwright/locale.e2e.ts b/apps/web/playwright/locale.e2e.ts index 2aa427ae6f..2b9c1836de 100644 --- a/apps/web/playwright/locale.e2e.ts +++ b/apps/web/playwright/locale.e2e.ts @@ -402,7 +402,7 @@ test.describe("authorized user sees changed translations (de->ar)", async () => await test.step("should change the language and show Arabic translations", async () => { await page.goto("/settings/my-account/general"); - await page.waitForLoadState("domcontentloaded"); + await page.waitForLoadState("networkidle"); await page.getByTestId("locale-select").click(); await page.getByTestId("select-option-ar").click(); @@ -462,7 +462,7 @@ test.describe("authorized user sees changed translations (de->pt-BR) [locale1]", await test.step("should change the language and show Brazil-Portuguese translations", async () => { await page.goto("/settings/my-account/general"); - await page.waitForLoadState("domcontentloaded"); + await page.waitForLoadState("networkidle"); await page.getByTestId("locale-select").click(); await page.getByTestId("select-option-pt-BR").click();