diff --git a/desktop/tests/e2e/community-rail.spec.ts b/desktop/tests/e2e/community-rail.spec.ts index 3f6d38602ab..1bcfa224710 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) => {