diff options
author | Joas Schilling <coding@schilljs.com> | 2021-05-18 15:08:21 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-05-18 18:38:10 +0300 |
commit | 3e88db0678bd990b7b3360fdc2fc58eddf3939fa (patch) | |
tree | 14a6202692e0d25918a268d39431805931f7fa10 /tests | |
parent | e8c5923111919e879f771e5c435a7993018f27d4 (diff) |
Fix name and type of left one-to-one conversations so reused user ids can't join again
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/conversation/delete-user.feature | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/integration/features/conversation/delete-user.feature b/tests/integration/features/conversation/delete-user.feature index 5ca62dbb5..8b3a7ad9f 100644 --- a/tests/integration/features/conversation/delete-user.feature +++ b/tests/integration/features/conversation/delete-user.feature @@ -16,6 +16,23 @@ Feature: conversation/delete-user Then user "participant1" sees the following messages in room "one-to-one room" with 200 | room | actorType | actorId | actorDisplayName | message | messageParameters | | one-to-one room | deleted_users | deleted_users | | Message 1 | [] | + Then user "participant1" is participant of the following rooms (v4) + | name | type | + | participant2-displayname | 2 | + + Scenario: delete user who left a one-to-one room + Given user "participant1" creates room "one-to-one room" (v4) + | roomType | 1 | + | invite | participant2 | + And user "participant2" sends message "Message 1" to room "one-to-one room" with 201 + When user "participant2" leaves room "one-to-one room" with 200 (v4) + When user "participant2" is deleted + Then user "participant1" sees the following messages in room "one-to-one room" with 200 + | room | actorType | actorId | actorDisplayName | message | messageParameters | + | one-to-one room | deleted_users | deleted_users | | Message 1 | [] | + Then user "participant1" is participant of the following rooms (v4) + | name | type | + | participant2-displayname | 2 | Scenario: delete user who is in a group room Given user "participant1" creates room "group room" (v4) |