Skip to content

Commit c75d1aa

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
test: Add integration test for last read message while being blocked in the lobby
Signed-off-by: Joas Schilling <[email protected]>
1 parent 5de4d34 commit c75d1aa

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

tests/integration/features/conversation-3/lobby.feature

+20-12
Original file line numberDiff line numberDiff line change
@@ -241,25 +241,33 @@ Feature: conversation/lobby
241241
And user "guest2" joins room "room" with 200 (v4)
242242
When user "participant1" sets lobby state for room "room" to "non moderators" with 200 (v4)
243243
And user "participant1" sends message "Message 1" to room "room" with 201
244+
And user "participant1" sees the following system messages in room "room" with 200
245+
| room | actorType | actorId | systemMessage |
246+
| room | users | participant1 | lobby_non_moderators |
247+
| room | users | participant1 | guest_moderator_promoted |
248+
| room | users | participant1 | user_added |
249+
| room | users | participant1 | moderator_promoted |
250+
| room | users | participant1 | user_added |
251+
| room | users | participant1 | conversation_created |
244252
And user "participant1" sets description for room "room" to "the description" with 200 (v4)
245253
Then user "participant1" is participant of room "room" (v4)
246-
| name | description | type | participantType | lastMessage |
247-
| room | the description | 3 | 1 | You set the description |
254+
| name | description | type | participantType | lastMessage | lastReadMessage |
255+
| room | the description | 3 | 1 | You set the description | Message 1 |
248256
And user "participant2" is participant of room "room" (v4)
249-
| name | description | type | participantType | lastMessage |
250-
| room | the description | 3 | 2 | {actor} set the description |
257+
| name | description | type | participantType | lastMessage | lastReadMessage |
258+
| room | the description | 3 | 2 | {actor} set the description | conversation_created |
251259
And user "participant3" is participant of room "room" (v4)
252-
| name | description | type | participantType | lastMessage |
253-
| room | the description | 3 | 3 | UNSET |
260+
| name | description | type | participantType | lastMessage | lastReadMessage |
261+
| room | the description | 3 | 3 | UNSET | moderator_promoted |
254262
And user "participant4" is participant of room "room" (v4)
255-
| name | description | type | participantType | lastMessage |
256-
| room | the description | 3 | 5 | UNSET |
263+
| name | description | type | participantType | lastMessage | lastReadMessage |
264+
| room | the description | 3 | 5 | UNSET | user_added |
257265
And user "guest" is participant of room "room" (v4)
258-
| name | description | type | participantType | lastMessage |
259-
| room | the description | 3 | 6 | {actor} set the description |
266+
| name | description | type | participantType | lastMessage | lastReadMessage |
267+
| room | the description | 3 | 6 | {actor} set the description | user_added |
260268
And user "guest2" is participant of room "room" (v4)
261-
| name | description | type | participantType | lastMessage |
262-
| room | the description | 3 | 4 | UNSET |
269+
| name | description | type | participantType | lastMessage | lastReadMessage |
270+
| room | the description | 3 | 4 | UNSET | guest_moderator_promoted |
263271

264272

265273
# Not all the values are checked in the test, only the most relevant ones

0 commit comments

Comments
 (0)