From 0ec8d0ff56996fb14997fff9aedf2c04e9027d7e Mon Sep 17 00:00:00 2001 From: Kerry Date: Thu, 6 Oct 2022 14:31:04 +0200 Subject: [PATCH] cypress - maybe improve "should close spotlight after starting a DM" stability (#9363) * explicity join bot to room instead of inviting * remove pause --- cypress/e2e/spotlight/spotlight.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/spotlight/spotlight.spec.ts b/cypress/e2e/spotlight/spotlight.spec.ts index 06bd675e19..71340d44f6 100644 --- a/cypress/e2e/spotlight/spotlight.spec.ts +++ b/cypress/e2e/spotlight/spotlight.spec.ts @@ -162,7 +162,7 @@ describe("Spotlight", () => { cy.window({ log: false }).then(({ matrixcs: { Visibility } }) => { cy.createRoom({ name: room1Name, visibility: Visibility.Public }).then(_room1Id => { room1Id = _room1Id; - cy.inviteUser(room1Id, bot1.getUserId()); + bot1.joinRoom(room1Id); cy.visit("/#/room/" + room1Id); }); bot2.createRoom({ name: room2Name, visibility: Visibility.Public })