diff options
author | Joas Schilling <coding@schilljs.com> | 2022-07-21 10:13:15 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-07-21 10:13:15 +0200 |
commit | 7d16c40596e90395081e4636ddc1e481314248cd (patch) | |
tree | 9b5f57f35d92a27778ad0b881fcdc3c2e2129fe8 /tests | |
parent | 6653d439f3efd4f517779effae26aa9feab85cda (diff) |
Add an integration test
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/chat/poll.feature | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/integration/features/chat/poll.feature b/tests/integration/features/chat/poll.feature index f0fb63bc4..2b64180ce 100644 --- a/tests/integration/features/chat/poll.feature +++ b/tests/integration/features/chat/poll.feature @@ -523,3 +523,53 @@ Feature: chat/poll | actorDisplayName | participant2-displayname | | status | open | | votedSelf | [1] | + + Scenario: Remove all votes + Given user "participant1" creates room "room" (v4) + | roomType | 2 | + | roomName | room | + When user "participant1" adds user "participant2" to room "room" with 200 (v4) + When user "participant1" creates a poll in room "room" with 201 + | question | What is the question? | + | options | ["Where are you?","How much is the fish?"] | + | resultMode | public | + | maxVotes | unlimited | + Then user "participant1" votes for options "[0]" on poll "What is the question?" in room "room" with 200 + | id | POLL_ID(What is the question?) | + | question | What is the question? | + | options | ["Where are you?","How much is the fish?"] | + | votes | {"option-0":1} | + | numVoters | 1 | + | resultMode | public | + | maxVotes | unlimited | + | actorType | users | + | actorId | participant1 | + | actorDisplayName | participant1-displayname | + | status | open | + | votedSelf | [0] | + Then user "participant1" votes for options "{}" on poll "What is the question?" in room "room" with 200 + | id | POLL_ID(What is the question?) | + | question | What is the question? | + | options | ["Where are you?","How much is the fish?"] | + | votes | [] | + | numVoters | 0 | + | resultMode | public | + | maxVotes | unlimited | + | actorType | users | + | actorId | participant1 | + | actorDisplayName | participant1-displayname | + | status | open | + | votedSelf | [] | + Then user "participant1" sees poll "What is the question?" in room "room" with 200 + | id | POLL_ID(What is the question?) | + | question | What is the question? | + | options | ["Where are you?","How much is the fish?"] | + | votes | [] | + | numVoters | 0 | + | resultMode | public | + | maxVotes | unlimited | + | actorType | users | + | actorId | participant1 | + | actorDisplayName | participant1-displayname | + | status | open | + | votedSelf | [] | |