diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-08-19 03:59:40 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-09-26 11:54:28 +0300 |
commit | 6f8ac51d10c9c7d8f56c62d04612385e5a8f1f2e (patch) | |
tree | c5dddad1deb2672917207342f90bd3145702a695 /tests | |
parent | 7fdcb46777843ac4153689501f4c8933381c1e59 (diff) |
Add integration tests for the "user_added" system message
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/chat/system-messages.feature | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/tests/integration/features/chat/system-messages.feature b/tests/integration/features/chat/system-messages.feature index 5b2cb9420..e74abb2a2 100644 --- a/tests/integration/features/chat/system-messages.feature +++ b/tests/integration/features/chat/system-messages.feature @@ -75,6 +75,68 @@ Feature: System messages | room | actorType | actorId | actorDisplayName | systemMessage | | room | users | participant1 | participant1-displayname | conversation_created | + Scenario: Adding participant to room + Given user "participant1" creates room "room" + | roomType | 2 | + | roomName | room | + 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 | + And user "participant2" 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 | + + Scenario: Joining public room + Given user "participant1" creates room "room" + | roomType | 3 | + | roomName | room | + When user "participant1" joins room "room" with 200 + And user "participant2" joins 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 | conversation_created | + And user "participant2" sees the following system messages in room "room" with 200 + | room | actorType | actorId | actorDisplayName | systemMessage | + | room | users | participant1 | participant1-displayname | conversation_created | + + Scenario: Joining room for file + Given user "participant1" shares "welcome.txt" with user "participant2" with OCS 100 + And user "participant1" gets the room for path "welcome.txt" with 200 + When user "participant1" joins room "file welcome.txt room" with 200 + And user "participant2" joins room "file welcome.txt room" with 200 + Then user "participant1" sees the following system messages in room "file welcome.txt room" with 200 + | room | actorType | actorId | actorDisplayName | systemMessage | + | file welcome.txt room | users | participant2 | participant2-displayname | user_added | + | file welcome.txt room | users | participant1 | participant1-displayname | user_added | + | file welcome.txt room | users | participant1 | participant1-displayname | conversation_created | + And user "participant2" sees the following system messages in room "file welcome.txt room" with 200 + | room | actorType | actorId | actorDisplayName | systemMessage | + | file welcome.txt room | users | participant2 | participant2-displayname | user_added | + | file welcome.txt room | users | participant1 | participant1-displayname | user_added | + | file welcome.txt room | users | participant1 | participant1-displayname | conversation_created | + + Scenario: Joining room for link share + Given user "participant1" shares "welcome.txt" by link with OCS 100 + And user "participant1" gets the room for last share with 200 + # Users without access to a file shared by link need to log in (so further + # requests keep the same session) and get the room (so the share token is + # stored in the session) to be able to join it. + And user "participant2" logs in + And user "participant2" gets the room for last share with 200 + When user "participant1" joins room "file last share room" with 200 + And user "participant2" joins room "file last share room" with 200 + Then user "participant1" sees the following system messages in room "file last share room" with 200 + | room | actorType | actorId | actorDisplayName | systemMessage | + | file last share room | users | participant1 | participant1-displayname | user_added | + | file last share room | users | participant1 | participant1-displayname | conversation_created | + And user "participant2" sees the following system messages in room "file last share room" with 200 + | room | actorType | actorId | actorDisplayName | systemMessage | + | file last share room | users | participant1 | participant1-displayname | user_added | + | file last share room | users | participant1 | participant1-displayname | conversation_created | + Scenario: Participant escalation Given user "participant1" creates room "room" | roomType | 2 | |