Deflake dercryption failure test (#34158)
It sometimes raced and clicked the wrong toast.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user