Deflake dercryption failure test (#34158)

It sometimes raced and clicked the wrong toast.
This commit is contained in:
David Baker
2026-07-13 13:41:23 +00:00
committed by GitHub
parent 14e4650c72
commit 7206d887f9
@@ -48,7 +48,11 @@ test.describe("Cryptography", function () {
// Log in again, and see how the message looks.
await logIntoElement(page, credentials);
// Dismiss the "Back up your chats" toast, otherwise it gets in the way of clicking the room list
await page.getByRole("button", { name: "Dismiss" }).click();
await page
.getByRole("alert")
.filter({ hasText: "Back up your chats" })
.getByRole("button", { name: "Dismiss" })
.click();
await app.viewRoomByName("Test room");
const lastTile = page.locator(".mx_EventTile").last();
await expect(lastTile).toContainText("Historical messages are not available on this device");