diff options
author | Joas Schilling <coding@schilljs.com> | 2023-03-07 11:02:03 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-03-07 11:02:03 +0100 |
commit | ea4296183ff03d5d0ee9c78ea34066dec7780e29 (patch) | |
tree | a55b7517e75d5636b64ca1396351317211425121 /tests | |
parent | f91d6de20da2505bc88ff0d8b58bc87813ffc04a (diff) |
fix(polls): Remove polls also when deleting the chat history
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/chat-2/poll.feature | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/integration/features/chat-2/poll.feature b/tests/integration/features/chat-2/poll.feature index ba78cbb00..7389cd568 100644 --- a/tests/integration/features/chat-2/poll.feature +++ b/tests/integration/features/chat-2/poll.feature @@ -715,3 +715,21 @@ Feature: chat-2/poll | room | actorType | actorId | actorDisplayName | message | messageParameters | | room | users | participant2 | participant2-displayname | Message deleted by you | "IGNORE" | | room | users | participant2 | participant2-displayname | Message deleted by you | "IGNORE" | + + Scenario: Deleting the chat history also deletes polls + Given user "participant1" creates room "room" (v4) + | roomType | 2 | + | roomName | room | + And user "participant1" adds user "participant2" to room "room" with 200 (v4) + And user "participant2" 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 | + And user "participant1" sees the following messages in room "room" with 200 (v1) + | room | actorType | actorId | actorDisplayName | message | messageParameters | + | room | users | participant2 | participant2-displayname | {object} | "IGNORE" | + And user "participant1" deletes chat history for room "room" with 200 + Then user "participant1" sees poll "What is the question?" in room "room" with 404 + Then user "participant2" sees poll "What is the question?" in room "room" with 404 + And user "participant1" sees the following messages in room "room" with 200 (v1) |