From 6a9942576d99b90406dac8abd38ebde26a8b536c Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Fri, 13 Oct 2023 09:50:16 +0100 Subject: [PATCH] Increase the timeout for the bot to enter the room (#11742) in an attempt to fix flakes like: * https://github.com/vector-im/element-web/issues/26298 * https://github.com/vector-im/element-web/issues/26341 which appear to fail when using Rust crypto, possibly because the client takes a while to start up. --- cypress/e2e/read-receipts/read-receipts-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/read-receipts/read-receipts-utils.ts b/cypress/e2e/read-receipts/read-receipts-utils.ts index e3dc01cbd9..0e6b7d5e82 100644 --- a/cypress/e2e/read-receipts/read-receipts-utils.ts +++ b/cypress/e2e/read-receipts/read-receipts-utils.ts @@ -66,12 +66,12 @@ export class ReadReceiptSetup { cy.inviteUser(this.alphaRoomId, this.bot.getUserId()); cy.viewRoomById(this.alphaRoomId); cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomAlpha).should("exist")); - cy.findByText(botName + " joined the room").should("exist"); + cy.findByText(botName + " joined the room", { timeout: 20000 }).should("exist"); cy.inviteUser(this.betaRoomId, this.bot.getUserId()); cy.viewRoomById(this.betaRoomId); cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomBeta).should("exist")); - cy.findByText(botName + " joined the room").should("exist"); + cy.findByText(botName + " joined the room", { timeout: 20000 }).should("exist"); }); } }