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.
This commit is contained in:
David Baker
2026-06-03 10:32:17 +01:00
committed by GitHub
parent 3f0878eeb7
commit ae3ec0ef86
@@ -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);