summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-04-07 07:54:35 -0300
committerGitHub <noreply@github.com>2022-04-07 07:54:35 -0300
commit10ff5d6af31ed1f09abc16066673537a91fe0960 (patch)
tree90bcc9f0704b4572c5790e48107608dcbdd85010 /tests
parent0c195c084bac6c985bb9cc5a71fdc6aa952bda72 (diff)
parenta276585b52fc3456446632e9ca5621c9ceef9a37 (diff)
Merge pull request #7102 from nextcloud/bugfix/7099/remove-reactions-from-deleted-messages
Remove reactions from deleted messages
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/reaction/react.feature17
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"}} | [] |