-
Notifications
You must be signed in to change notification settings - Fork 510
Expand file tree
/
Copy pathsystem-messages.feature
More file actions
110 lines (103 loc) · 6.83 KB
/
system-messages.feature
File metadata and controls
110 lines (103 loc) · 6.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Feature: System messages
Background:
Given user "participant1" exists
Given user "participant2" exists
Given user "participant3" exists
And group "attendees1" exists
And user "participant2" is member of group "attendees1"
And user "participant3" is member of group "attendees1"
Scenario: Creating an empty room
When user "participant1" creates room "room"
| roomType | 2 |
| roomName | room |
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | conversation_created |
Scenario: Rename a room
Given user "participant1" creates room "room"
| roomType | 2 |
| roomName | room |
When user "participant1" renames room "room" to "system test" with 200
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | conversation_renamed |
| room | users | participant1 | participant1-displayname | conversation_created |
Scenario: Toggle guests
Given user "participant1" creates room "room"
| roomType | 2 |
| roomName | room |
When user "participant1" makes room "room" public with 200
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | guests_allowed |
| room | users | participant1 | participant1-displayname | conversation_created |
When user "participant1" makes room "room" private with 200
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | guests_disallowed |
| room | users | participant1 | participant1-displayname | guests_allowed |
| room | users | participant1 | participant1-displayname | conversation_created |
Scenario: Toggle password
Given user "participant1" creates room "room"
| roomType | 3 |
| roomName | room |
When user "participant1" sets password "123456" for room "room" with 200
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | password_set |
| room | users | participant1 | participant1-displayname | conversation_created |
When user "participant1" sets password "" for room "room" with 200
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | password_removed |
| room | users | participant1 | participant1-displayname | password_set |
| room | users | participant1 | participant1-displayname | conversation_created |
Scenario: Creating a group room
When user "participant1" creates room "room"
| roomType | 2 |
| invite | attendees1 |
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | user_added |
| room | users | participant1 | participant1-displayname | user_added |
| room | users | participant1 | participant1-displayname | conversation_created |
Scenario: Creating a one2one room
When user "participant1" creates room "room"
| roomType | 1 |
| invite | participant2 |
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | conversation_created |
Scenario: Participant escalation
Given user "participant1" creates room "room"
| roomType | 2 |
| roomName | room |
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | conversation_created |
When user "participant1" adds "participant2" to room "room" with 200
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | user_added |
| room | users | participant1 | participant1-displayname | conversation_created |
When user "participant1" promotes "participant2" in room "room" with 200
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | moderator_promoted |
| room | users | participant1 | participant1-displayname | user_added |
| room | users | participant1 | participant1-displayname | conversation_created |
When user "participant1" demotes "participant2" in room "room" with 200
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | moderator_demoted |
| room | users | participant1 | participant1-displayname | moderator_promoted |
| room | users | participant1 | participant1-displayname | user_added |
| room | users | participant1 | participant1-displayname | conversation_created |
When user "participant1" removes "participant2" from room "room" with 200
Then user "participant1" sees the following system messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | systemMessage |
| room | users | participant1 | participant1-displayname | user_removed |
| room | users | participant1 | participant1-displayname | moderator_demoted |
| room | users | participant1 | participant1-displayname | moderator_promoted |
| room | users | participant1 | participant1-displayname | user_added |
| room | users | participant1 | participant1-displayname | conversation_created |