Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit c4432a8

Browse files
authored
Fix flaky polls test (#9369)
1 parent a11c1e1 commit c4432a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cypress/e2e/polls/polls.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ describe("Polls", () => {
105105
roomId = _roomId;
106106
cy.inviteUser(roomId, bot.getUserId());
107107
cy.visit('/#/room/' + roomId);
108+
// wait until Bob joined
109+
cy.contains(".mx_TextualEvent", "BotBob joined the room").should("exist");
108110
});
109111

110112
cy.openMessageComposerOptions().within(() => {
@@ -173,6 +175,8 @@ describe("Polls", () => {
173175
cy.inviteUser(roomId, botBob.getUserId());
174176
cy.inviteUser(roomId, botCharlie.getUserId());
175177
cy.visit('/#/room/' + roomId);
178+
// wait until the bots joined
179+
cy.contains(".mx_TextualEvent", "and one other were invited and joined").should("exist");
176180
});
177181

178182
cy.openMessageComposerOptions().within(() => {

0 commit comments

Comments
 (0)