summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-06 15:10:15 +0200
committerJoas Schilling <coding@schilljs.com>2022-04-06 15:37:54 +0200
commiteb58aa6171bad920b0ddc3fc2404e35c0ca31f94 (patch)
treee56c44d89617ed3529a77c87be5eaff854c26cd6 /tests
parentf7505e0d59b8343bc0405286fdf9c8b4da27d3dc (diff)
Remove notifications for deleted messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/chat/notifications.feature15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/integration/features/chat/notifications.feature b/tests/integration/features/chat/notifications.feature
index 467e42175..4d62db44c 100644
--- a/tests/integration/features/chat/notifications.feature
+++ b/tests/integration/features/chat/notifications.feature
@@ -214,3 +214,18 @@ Feature: chat/notifications
When user "participant1" sends message "Hi @all bye" to room "room" with 201
Then user "participant2" has the following notifications
| app | object_type | object_id | subject |
+
+ Scenario: Delete notification when the message is deleted
+ When user "participant1" creates room "one-to-one room" (v4)
+ | roomType | 1 |
+ | invite | participant2 |
+ # Join and leave to clear the invite notification
+ Given user "participant2" joins room "one-to-one room" with 200 (v4)
+ And user "participant2" leaves room "one-to-one room" with 200 (v4)
+ And user "participant1" sends message "Message 1" to room "one-to-one room" with 201
+ Then user "participant2" has the following notifications
+ | app | object_type | object_id | subject |
+ | spreed | chat | one-to-one room/Message 1 | participant1-displayname sent you a private message |
+ When user "participant1" deletes message "Message 1" from room "one-to-one room" with 200 (v1)
+ Then user "participant2" has the following notifications
+ | app | object_type | object_id | subject |