summaryrefslogtreecommitdiffstats
path: root/tests/integration/features/conversation-2/promotion-demotion.feature
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-05-02 08:58:48 +0200
committerJoas Schilling <coding@schilljs.com>2023-05-02 16:56:20 +0200
commit10b4e6ba237db4d18ab4718fb56dab0ae3327acd (patch)
tree7098fbab2b19062f9c1358f9dc61676bb5c84497 /tests/integration/features/conversation-2/promotion-demotion.feature
parent76eaaee883331b57d37c9cd4a09696c94054a8e0 (diff)
fix(permissions): Reset custom permissions on promotion
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/integration/features/conversation-2/promotion-demotion.feature')
-rw-r--r--tests/integration/features/conversation-2/promotion-demotion.feature19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/integration/features/conversation-2/promotion-demotion.feature b/tests/integration/features/conversation-2/promotion-demotion.feature
index 153313f2a..9ecd964fd 100644
--- a/tests/integration/features/conversation-2/promotion-demotion.feature
+++ b/tests/integration/features/conversation-2/promotion-demotion.feature
@@ -33,14 +33,33 @@ Feature: conversation-2/promotion-demotion
| room | 3 | 3 |
And user "participant1" loads attendees attendee ids in room "room" (v4)
And user "participant1" promotes "participant2" in room "room" with 200 (v4)
+ And user "participant1" sets permissions for "participant3" in room "room" to "L" with 200 (v4)
+ Then user "participant1" sees the following attendees in room "room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | participant1 | SJLAVPM |
+ | users | participant2 | SJLAVPM |
+ | users | participant3 | CL |
+ Then user "participant3" is participant of the following rooms (v4)
+ | id | type | participantType |
+ | room | 3 | 3 |
When user "participant2" promotes "participant3" in room "room" with 200 (v4)
Then user "participant3" is participant of the following rooms (v4)
| id | type | participantType |
| room | 3 | 2 |
+ Then user "participant1" sees the following attendees in room "room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | participant1 | SJLAVPM |
+ | users | participant2 | SJLAVPM |
+ | users | participant3 | SJLAVPM |
When user "participant2" demotes "participant3" in room "room" with 200 (v4)
Then user "participant3" is participant of the following rooms (v4)
| id | type | participantType |
| room | 3 | 3 |
+ Then user "participant1" sees the following attendees in room "room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | participant1 | SJLAVPM |
+ | users | participant2 | SJLAVPM |
+ | users | participant3 | SJAVPM |
Scenario: User promotes/demotes moderator
Given user "participant1" creates room "room" (v4)