summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-08-17 11:45:35 +0200
committerJoas Schilling <coding@schilljs.com>2023-08-17 11:45:35 +0200
commit9cf4c0e5c00185c8638ac0be9664c7ada5eb3eb6 (patch)
tree61aa49e8545fd689219321843df46c3541ce3e42
parent4c7a799775810ea644a6277ee640e4d941ff65c0 (diff)
test onlytest-only
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--tests/integration/features/conversation/avatar.feature31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/integration/features/conversation/avatar.feature b/tests/integration/features/conversation/avatar.feature
index 97904d44b..26a313042 100644
--- a/tests/integration/features/conversation/avatar.feature
+++ b/tests/integration/features/conversation/avatar.feature
@@ -2,6 +2,8 @@ Feature: conversation/avatar
Background:
Given user "participant1" exists
Given user "participant2" exists
+ And guest accounts can be created
+ And user "user-guest@example.com" is a guest account user
Scenario: Misteps
Given user "participant1" creates room "room1" (v4)
@@ -44,6 +46,35 @@ Feature: conversation/avatar
| avatarVersion | NOT_EMPTY |
| isCustomAvatar | 0 |
+ Scenario: Get avatar of conversation without being a participant
+ Given user "participant1" creates room "room3" (v4)
+ | roomType | 3 |
+ | roomName | room3 |
+ Then the room "room3" has an avatar with 200
+ And user "participant1" gets room "room3" with 200 (v4)
+ | avatarVersion | NOT_EMPTY |
+ | isCustomAvatar | 0 |
+ And as user "participant2"
+ And the room "room3" has an avatar with 404
+ And as user "user-guest@example.com"
+ And the room "room3" has an avatar with 404
+ And as user "guest"
+ And the room "room3" has an avatar with 404
+ When user "participant1" allows listing room "room3" for "users" with 200 (v4)
+ And as user "participant2"
+ And the room "room3" has an avatar with 200
+ And as user "user-guest@example.com"
+ And the room "room3" has an avatar with 404
+ And as user "guest"
+ And the room "room3" has an avatar with 404
+ When user "participant1" allows listing room "room3" for "all" with 200 (v4)
+ And as user "participant2"
+ And the room "room3" has an avatar with 200
+ And as user "user-guest@example.com"
+ And the room "room3" has an avatar with 200
+ And as user "guest"
+ And the room "room3" has an avatar with 404
+
Scenario: Get avatar of one2one without custom avatar (fallback)
When user "participant1" creates room "one2one" (v4)
| roomType | 1 |