Fix flaky polls test (#9369)

pull/28217/head
Michael Weimann 2022-10-07 10:17:08 +02:00 committed by GitHub
parent a11c1e17a5
commit c4432a8a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,8 @@ describe("Polls", () => {
roomId = _roomId; roomId = _roomId;
cy.inviteUser(roomId, bot.getUserId()); cy.inviteUser(roomId, bot.getUserId());
cy.visit('/#/room/' + roomId); cy.visit('/#/room/' + roomId);
// wait until Bob joined
cy.contains(".mx_TextualEvent", "BotBob joined the room").should("exist");
}); });
cy.openMessageComposerOptions().within(() => { cy.openMessageComposerOptions().within(() => {
@ -173,6 +175,8 @@ describe("Polls", () => {
cy.inviteUser(roomId, botBob.getUserId()); cy.inviteUser(roomId, botBob.getUserId());
cy.inviteUser(roomId, botCharlie.getUserId()); cy.inviteUser(roomId, botCharlie.getUserId());
cy.visit('/#/room/' + roomId); cy.visit('/#/room/' + roomId);
// wait until the bots joined
cy.contains(".mx_TextualEvent", "and one other were invited and joined").should("exist");
}); });
cy.openMessageComposerOptions().within(() => { cy.openMessageComposerOptions().within(() => {