Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-05-23 14:11:51 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-05-31 18:04:16 +0300
commit63eb2c64e14c5ba7a738898131374892a4525309 (patch)
tree1d01bdbb67be9b3993c5f6a9a1eac4222eb31c3e
parentdad016c5b99fc154692b39437598caa19f7e894c (diff)
Add integration tests for reactions notificationsbackport/7411/stable24
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--tests/integration/features/chat/notifications.feature54
1 files changed, 54 insertions, 0 deletions
diff --git a/tests/integration/features/chat/notifications.feature b/tests/integration/features/chat/notifications.feature
index 4d62db44c..8681bebcc 100644
--- a/tests/integration/features/chat/notifications.feature
+++ b/tests/integration/features/chat/notifications.feature
@@ -71,6 +71,32 @@ Feature: chat/notifications
Then user "participant2" has the following notifications
| app | object_type | object_id | subject |
+ Scenario: Reaction in the one-to-one
+ 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)
+ Given user "participant2" leaves room "one-to-one room" with 200 (v4)
+ When user "participant2" sends message "Message 1" to room "one-to-one room" with 201
+ And user "participant1" react with "🚀" on 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 reacted with 🚀 to your private message |
+
+ Scenario: Reaction when recipient disabled notifications in the one-to-one
+ 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)
+ Given user "participant2" leaves room "one-to-one room" with 200 (v4)
+ When user "participant2" sends message "Message 1" to room "one-to-one room" with 201
+ And user "participant2" sets notifications to disabled for room "one-to-one room" (v4)
+ And user "participant1" react with "🚀" on message "Message 1" to room "one-to-one room" with 201
+ Then user "participant2" has the following notifications
+ | app | object_type | object_id | subject |
+
Scenario: At-all when recipient is online in the one-to-one
When user "participant1" creates room "one-to-one room" (v4)
| roomType | 1 |
@@ -229,3 +255,31 @@ Feature: chat/notifications
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 |
+
+ Scenario: Reaction when recipient full enables notifications in the group room
+ When user "participant1" creates room "room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ And user "participant1" adds user "participant2" to room "room" with 200 (v4)
+ # Join and leave to clear the invite notification
+ Given user "participant2" joins room "room" with 200 (v4)
+ Given user "participant2" leaves room "room" with 200 (v4)
+ When user "participant2" sends message "Message 1" to room "room" with 201
+ And user "participant2" sets notifications to all for room "room" (v4)
+ And user "participant1" react with "🚀" on message "Message 1" to room "room" with 201
+ Then user "participant2" has the following notifications
+ | app | object_type | object_id | subject |
+ | spreed | chat | room/Message 1 | participant1-displayname reacted with 🚀 to your message in conversation room |
+
+ Scenario: Reaction when recipient has default notifications (disabled) in the group room
+ When user "participant1" creates room "room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ And user "participant1" adds user "participant2" to room "room" with 200 (v4)
+ # Join and leave to clear the invite notification
+ Given user "participant2" joins room "room" with 200 (v4)
+ Given user "participant2" leaves room "room" with 200 (v4)
+ When user "participant2" sends message "Message 1" to room "room" with 201
+ And user "participant1" react with "🚀" on message "Message 1" to room "room" with 201
+ Then user "participant2" has the following notifications
+ | app | object_type | object_id | subject |