From 9ab8e330fe192404b8d13df8b1336bea9c249a63 Mon Sep 17 00:00:00 2001 From: Kerry Date: Thu, 20 Oct 2022 15:04:05 +0200 Subject: [PATCH] stabilise polls cypress test (#9472) --- cypress/e2e/polls/polls.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cypress/e2e/polls/polls.spec.ts b/cypress/e2e/polls/polls.spec.ts index f4be3962ed..00b944ce9d 100644 --- a/cypress/e2e/polls/polls.spec.ts +++ b/cypress/e2e/polls/polls.spec.ts @@ -231,6 +231,9 @@ describe("Polls", () => { // Bot votes 'Maybe' in the poll 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 getPollTile(pollId).rightclick();