From ae3ec0ef867016e3a3599d8dd45032fd9c8bd2de Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 3 Jun 2026 10:32:17 +0100 Subject: [PATCH] Deflake sliding sync test (#33719) It was trying to click the room before it had turned the invite filter off so it was relying on clicking it before the rescind made its way to the UI. --- apps/web/playwright/e2e/sliding-sync/sliding-sync.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/playwright/e2e/sliding-sync/sliding-sync.spec.ts b/apps/web/playwright/e2e/sliding-sync/sliding-sync.spec.ts index 1c44afbda6..92dc56b210 100644 --- a/apps/web/playwright/e2e/sliding-sync/sliding-sync.spec.ts +++ b/apps/web/playwright/e2e/sliding-sync/sliding-sync.spec.ts @@ -278,12 +278,13 @@ test.describe("Sliding Sync", () => { { roomRescind, clientUserId }, ); + // toggle the invites filter off again so we see all the rooms again + await primaryFilters.getByRole("option", { name: "Invites" }).click(); + await page.getByRole("option", { name: "Open room Room to Rescind" }).click(); await page.locator(".mx_RoomView").getByRole("button", { name: "Forget this room", exact: true }).click(); - await primaryFilters.getByRole("option", { name: "Invites" }).click(); - // Wait for the rescind to take effect and check the joined list once more await expect(page.getByTestId("room-list").getByRole("option")).toHaveCount(2);