diff --git a/tests/integration/features/command/user-remove.feature b/tests/integration/features/command/user-remove.feature index f6d1d87d976..6e1ea86cc40 100644 --- a/tests/integration/features/command/user-remove.feature +++ b/tests/integration/features/command/user-remove.feature @@ -67,11 +67,18 @@ Feature: command/user-remove Given user "participant1" creates room "room" (v4) | roomType | 1 | | invite | participant2 | - Then user "participant1" joins room "room" with 200 (v4) - Then user "participant1" joins call "room" with 200 (v4) - Then user "participant1" leaves call "room" with 200 (v4) - Then user "participant1" leaves room "room" with 200 (v4) - And reset signaling server requests + When user "participant1" joins room "room" with 200 (v4) + And user "participant1" joins call "room" with 200 (v4) + And wait for 1 second + And user "participant1" leaves call "room" with 200 (v4) + And user "participant1" leaves room "room" with 200 (v4) + Then user "participant1" sees the following system messages in room "room" with 200 + | room | actorType | actorId | systemMessage | message | messageParameters | + | room | users | participant1 | call_tried | You tried to call {user} | {"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | + | room | users | participant1 | call_left | You left the call | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | + | room | users | participant1 | call_started | You started a call | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | + | room | users | participant1 | conversation_created | You created the conversation | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | + When reset signaling server requests And invoking occ with "talk:user:remove --user participant2" Then signaling server received the following requests | token | data | @@ -83,7 +90,7 @@ Feature: command/user-remove | room | {"type":"message","message":{"data":{"type":"chat","chat":{"refresh":true}}}} | # Read only changed | room | {"type":"update","update":{"userids":["participant1"],"properties":{"name":"Private conversation","type":5,"lobby-state":0,"lobby-timer":null,"read-only":1,"listable":0,"active-since":null,"sip-enabled":0,"description":""}}} | - And the command output contains the text "Users successfully removed from all rooms" + And the command output contains the text "Users successfully removed from all rooms" Then the command was successful And user "participant2" is participant of the following rooms (v4) And user "participant1" is participant of the following rooms (v4)