diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-06 14:43:00 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-06 14:56:24 +0200 |
commit | a276585b52fc3456446632e9ca5621c9ceef9a37 (patch) | |
tree | 4528fac01562e33333992b0afb44f7ced1f29a07 /tests | |
parent | 47207131144cc80d98cf4f5570625e8b69a9b0ff (diff) |
Remove reactions from deleted messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/reaction/react.feature | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/integration/features/reaction/react.feature b/tests/integration/features/reaction/react.feature index 7dcfa52aa..f7c796bf1 100644 --- a/tests/integration/features/reaction/react.feature +++ b/tests/integration/features/reaction/react.feature @@ -111,3 +111,20 @@ Feature: reaction/react | users | participant1 | participant1-displayname | 👍 | | users | participant2 | participant2-displayname | 👎 | | users | participant2 | participant2-displayname | 👍 | + + Scenario: Delete message that was reacted to + 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 "participant1" sends message "Message 1" to room "room" with 201 + And user "participant2" react with "👍" on message "Message 1" to room "room" with 201 + | actorType | actorId | actorDisplayName | reaction | + | users | participant2 | participant2-displayname | 👍 | + And user "participant1" sees the following messages in room "room" with 200 + | room | actorType | actorId | actorDisplayName | message | messageParameters | reactions | + | room | users | participant1 | participant1-displayname | Message 1 | [] | {"👍":1} | + Then user "participant1" deletes message "Message 1" from room "room" with 200 (v1) + And user "participant1" sees the following messages in room "room" with 200 + | room | actorType | actorId | actorDisplayName | message | messageParameters | reactions | + | room | users | participant1 | participant1-displayname | Message deleted by you | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | [] | |