diff options
author | Vitor Mattos <vitor@php.rio> | 2023-05-03 06:26:40 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-05-03 06:26:40 -0300 |
commit | 0ce23663e3aa5870b5cd0cd2db4e012dc811d40b (patch) | |
tree | 34078ccc6707b0d63c3b6bff660e20cf6c15012a /tests | |
parent | 21bc57c6492dda5712dd7f30877403b358ab8643 (diff) |
Return isCustomAvatar=true when the name of room start with an emoji
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/conversation/avatar.feature | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/integration/features/conversation/avatar.feature b/tests/integration/features/conversation/avatar.feature index 91219eec8..27e56f354 100644 --- a/tests/integration/features/conversation/avatar.feature +++ b/tests/integration/features/conversation/avatar.feature @@ -62,6 +62,32 @@ Feature: conversation/avatar | avatarVersion | NOT_EMPTY | | isCustomAvatar | 0 | + Scenario: Conversation that the name start with emoji need to have custom avatar + Given user "participant1" creates room "room1" (v4) + | roomType | 3 | + | roomName | room1 | + And user "participant1" gets room "room1" with 200 (v4) + | avatarVersion | NOT_EMPTY | + | isCustomAvatar | 0 | + | displayName | room1 | + And user "participant1" renames room "room1" to "room2" with 200 (v4) + And user "participant1" gets room "room1" with 200 (v4) + | avatarVersion | NOT_EMPTY | + | isCustomAvatar | 0 | + | displayName | room2 | + Then the room "room1" has an avatar with 200 + And user "participant1" renames room "room1" to "💙room2" with 200 (v4) + And user "participant1" gets room "room1" with 200 (v4) + | avatarVersion | NOT_EMPTY | + | isCustomAvatar | 1 | + | displayName | 💙room2 | + Then the room "room1" has an avatar with 200 + And user "participant1" renames room "room1" to "room1" with 200 (v4) + And user "participant1" gets room "room1" with 200 (v4) + | avatarVersion | NOT_EMPTY | + | isCustomAvatar | 0 | + | displayName | room1 | + Scenario: User should receive the room avatar when see a rich object at media tab Given user "participant1" creates room "public room" (v4) | roomType | 3 | |