summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-02-28 11:13:19 +0100
committerJoas Schilling <coding@schilljs.com>2023-02-28 11:17:37 +0100
commit047f812f57f3ed8337a1fed954e3d19579630976 (patch)
tree534cb9acde90d0996dd21a7f0411936bf6db3f8b /tests
parentef573c75b0d593f458291e11ea9fa0faad88d6a3 (diff)
fix(reactions): Fix reacting to people that left
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/chat-2/reaction.feature17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/integration/features/chat-2/reaction.feature b/tests/integration/features/chat-2/reaction.feature
index 9c586689e..7b05e971c 100644
--- a/tests/integration/features/chat-2/reaction.feature
+++ b/tests/integration/features/chat-2/reaction.feature
@@ -84,6 +84,23 @@ Feature: chat-2/reaction
| room | users | participant1 | participant1-displayname | user_added |
| room | users | participant1 | participant1-displayname | conversation_created |
+ Scenario: React to message does not fail when the author left the conversation
+ Given user "participant1" creates room "room" (v4)
+ | roomType | 3 |
+ | roomName | room |
+ And user "participant1" adds user "participant2" to room "room" with 200 (v4)
+ And user "participant2" sends message "Message 1" to room "room" with 201
+ And user "participant2" removes themselves from room "room" with 200 (v4)
+ And user "participant1" react with "👍" on message "Message 1" to room "room" with 201
+ | actorType | actorId | actorDisplayName | reaction |
+ | users | participant1 | participant1-displayname | 👍 |
+ Then user "participant1" sees the following system messages in room "room" with 200
+ | room | actorType | actorId | actorDisplayName | systemMessage |
+ | room | users | participant1 | participant1-displayname | reaction |
+ | room | users | participant2 | participant2-displayname | user_removed |
+ | room | users | participant1 | participant1-displayname | user_added |
+ | room | users | participant1 | participant1-displayname | conversation_created |
+
Scenario: Delete reaction to message with success
Given user "participant1" creates room "room" (v4)
| roomType | 3 |