diff options
author | Vitor Mattos <vitor@php.rio> | 2023-05-02 09:33:34 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-05-03 05:00:09 -0300 |
commit | 7a0ac60c920d7138a97e2a2c015fe52801dff0e2 (patch) | |
tree | c95539a0f91c4bd55d679541d844d23ceb8e65ef /tests | |
parent | 7f50f59e0ca7996001d9c330315c2f8ad5712aa8 (diff) |
Replace the header X-NC-IsCustomAvatar by conversation property isCustomAvatar
With the header isn't possible to check if `isCustomAvatar` without
retrieve the avatar to verify the header. Because this, isCUstomAvatar
was moved to a conversation property.
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/conversation/avatar.feature | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/integration/features/conversation/avatar.feature b/tests/integration/features/conversation/avatar.feature index 4b52e32bc..91219eec8 100644 --- a/tests/integration/features/conversation/avatar.feature +++ b/tests/integration/features/conversation/avatar.feature @@ -16,9 +16,10 @@ Feature: conversation/avatar | roomType | 3 | | roomName | room2 | When user "participant1" uploads file "/img/favicon.png" as avatar of room "room2" with 200 + And user "participant1" gets room "room2" with 200 (v4) + | avatarVersion | NOT_EMPTY | + | isCustomAvatar | 1 | Then the room "room2" has an avatar with 200 - And The following headers should be set - | X-NC-IsCustomAvatar | 1 | And user "participant1" sees the following system messages in room "room2" with 200 | room | actorType | actorId | systemMessage | message | | room2 | users | participant1 | avatar_set | You set the conversation picture | @@ -31,27 +32,35 @@ Feature: conversation/avatar | room2 | users | participant1 | conversation_created | You created the conversation | And user "participant1" gets room "room2" with 200 (v4) | avatarVersion | NOT_EMPTY | + | isCustomAvatar | 0 | Then the room "room2" has an avatar with 200 - And The following headers should be set - | X-NC-IsCustomAvatar | 0 | Scenario: Get avatar of conversation without custom avatar (fallback) 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 | Scenario: Get avatar of one2one without custom avatar (fallback) When user "participant1" creates room "one2one" (v4) | roomType | 1 | | invite | participant2 | Then the room "one2one" has an avatar with 200 + And user "participant1" gets room "one2one" with 200 (v4) + | avatarVersion | NOT_EMPTY | + | isCustomAvatar | 0 | Scenario: Try to change avatar of one2one without success When user "participant1" creates room "one2one" (v4) | roomType | 1 | | invite | participant2 | Then user "participant1" uploads file "/img/favicon.png" as avatar of room "one2one" with 400 + And user "participant1" gets room "one2one" with 200 (v4) + | avatarVersion | NOT_EMPTY | + | isCustomAvatar | 0 | Scenario: User should receive the room avatar when see a rich object at media tab Given user "participant1" creates room "public room" (v4) |