From d0dc81e1d9476666810989e70e2387c3bdc8569c Mon Sep 17 00:00:00 2001 From: kiranmagic7 <262980978+kiranmagic7@users.noreply.github.com> Date: Mon, 17 Aug 2026 08:46:33 +0530 Subject: [PATCH] test(desktop): stabilize community validation route check Signed-off-by: kiranmagic7 <262980978+kiranmagic7@users.noreply.github.com> --- desktop/tests/e2e/community-rail.spec.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/desktop/tests/e2e/community-rail.spec.ts b/desktop/tests/e2e/community-rail.spec.ts index 3f6d38602a..1bcfa22471 100644 --- a/desktop/tests/e2e/community-rail.spec.ts +++ b/desktop/tests/e2e/community-rail.spec.ts @@ -858,7 +858,14 @@ test.describe("community rail", () => { ), ).toBe(1); await page.getByTestId(`community-rail-button-${COMMUNITY_B.id}`).click(); - await expect(page).not.toHaveURL(/#\/channels\/general$/); + await expect + .poll(() => + page.evaluate(() => + window.localStorage.getItem("buzz-active-community-id"), + ), + ) + .toBe(COMMUNITY_B.id); + await expect(page).toHaveURL(/#\/channels\/general$/); await expect .poll(() => page.evaluate((communityId) => {