stabilise polls cypress test (#9472)

This commit is contained in:
Kerry 2022-10-20 15:04:05 +02:00 committed by GitHub
parent b7996a2e49
commit 9ab8e330fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -231,6 +231,9 @@ describe("Polls", () => {
// Bot votes 'Maybe' in the poll // Bot votes 'Maybe' in the poll
botVoteForOption(bot, roomId, pollId, pollParams.options[2]); botVoteForOption(bot, roomId, pollId, pollParams.options[2]);
// wait for bot's vote to arrive
cy.get('.mx_MPollBody_totalVotes').should('contain', '1 vote cast');
// Open context menu // Open context menu
getPollTile(pollId).rightclick(); getPollTile(pollId).rightclick();