summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-08-23 12:20:52 +0200
committerJoas Schilling <coding@schilljs.com>2022-08-23 12:59:17 +0200
commit8938dcca1840de3000219751fac361b8a09629d4 (patch)
tree2cc40884a96116a0561d774c08db4bbab1462321 /tests
parentfa446078dc844eb569e11f23b5aabc179aee094a (diff)
Filter blocked users out of the call notification
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/callapi/notifications.feature56
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/integration/features/callapi/notifications.feature b/tests/integration/features/callapi/notifications.feature
index b1d13c051..fc900927a 100644
--- a/tests/integration/features/callapi/notifications.feature
+++ b/tests/integration/features/callapi/notifications.feature
@@ -66,3 +66,59 @@ Feature: chat/notifications
Then user "participant2" has the following notifications
| app | object_type | object_id | subject |
| spreed | call | room | A group call has started in room |
+
+ Scenario: Lobby: No call notification sent for users that are blocked by the lobby
+ Given user "participant1" creates room "room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ And user "participant1" adds user "participant2" to room "room" with 200 (v4)
+ And user "participant1" joins room "room" with 200 (v4)
+ And user "participant2" joins room "room" with 200 (v4)
+ And user "participant1" sets lobby state for room "room" to "non moderators" with 200 (v4)
+ When user "participant1" joins call "room" with 200 (v4)
+ Then user "participant2" has the following notifications
+ | app | object_type | object_id | subject |
+
+ Scenario: Lobby: Call notification sent to users with ignore lobby permissions
+ Given user "participant1" creates room "room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ And user "participant1" adds user "participant2" to room "room" with 200 (v4)
+ And user "participant1" joins room "room" with 200 (v4)
+ And user "participant2" joins room "room" with 200 (v4)
+ And user "participant1" sets permissions for "participant2" in room "room" to "L" with 200 (v4)
+ And user "participant1" sets lobby state for room "room" to "non moderators" with 200 (v4)
+ When user "participant1" joins call "room" with 200 (v4)
+ Then user "participant2" has the following notifications
+ | app | object_type | object_id | subject |
+ | spreed | call | room | A group call has started in room |
+
+ Scenario: Lobby: Call notification sent to moderators
+ Given user "participant1" creates room "room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ And user "participant1" adds user "participant2" to room "room" with 200 (v4)
+ And user "participant1" joins room "room" with 200 (v4)
+ And user "participant2" joins room "room" with 200 (v4)
+ And user "participant1" promotes "participant2" in room "room" with 200 (v4)
+ And user "participant1" sets lobby state for room "room" to "non moderators" with 200 (v4)
+ When user "participant1" joins call "room" with 200 (v4)
+ Then user "participant2" has the following notifications
+ | app | object_type | object_id | subject |
+ | spreed | call | room | A group call has started in room |
+
+ Scenario: Lobby: Call notification wiped if lobby enabled afterwards
+ Given user "participant1" creates room "room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ And user "participant1" adds user "participant2" to room "room" with 200 (v4)
+ And user "participant1" joins room "room" with 200 (v4)
+ And user "participant2" joins room "room" with 200 (v4)
+ When user "participant1" joins call "room" with 200 (v4)
+ Then user "participant2" has the following notifications
+ | app | object_type | object_id | subject |
+ | spreed | call | room | A group call has started in room |
+ And user "participant1" sets lobby state for room "room" to "non moderators" with 200 (v4)
+ Then user "participant2" has the following notifications
+ | app | object_type | object_id | subject |
+