diff options
author | Joas Schilling <coding@schilljs.com> | 2021-01-28 18:10:43 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-01-29 13:15:14 +0300 |
commit | b699ff66b15fe0d37473481f086ae904ed220570 (patch) | |
tree | 7a147e7943fe4550986e204a4844d4dfcfe18201 /tests | |
parent | 6f05d932f0490684e766b969c7e1c749ec48851a (diff) |
Add an integration test for sub and subname mentions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/chat/rich-messages.feature | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/integration/features/chat/rich-messages.feature b/tests/integration/features/chat/rich-messages.feature index 13b51323a..e4d07c26d 100644 --- a/tests/integration/features/chat/rich-messages.feature +++ b/tests/integration/features/chat/rich-messages.feature @@ -3,6 +3,7 @@ Feature: chat/public Given user "participant1" exists Given user "participant2" exists Given user "participant3" exists + Given user "participant3a" exists Scenario: message without enrichable references has empty parameters Given user "participant1" creates room "public room" @@ -48,3 +49,14 @@ Feature: chat/public Then user "participant1" sees the following messages in room "public room" with 200 | room | actorType | actorId | actorDisplayName | message | messageParameters | | public room | users | participant1 | participant1-displayname | Mention to {mention-user1}, @unknownUser, {mention-user1} again and {mention-user2} | {"mention-user1":{"type":"user","id":"participant2","name":"participant2-displayname"},"mention-user2":{"type":"user","id":"participant3","name":"participant3-displayname"}} | + + Scenario: message with mentions of subname users (uid1 is fully part of uid2) + Given user "participant1" creates room "public room" + | roomType | 3 | + | roomName | room | + When user "participant1" sends message "Mention to @participant3 and @participant3a" to room "public room" with 201 + When user "participant1" sends message "Mention to @participant3a and @participant3" to room "public room" with 201 + Then user "participant1" sees the following messages in room "public room" with 200 + | room | actorType | actorId | actorDisplayName | message | messageParameters | + | public room | users | participant1 | participant1-displayname | Mention to {mention-user1} and {mention-user2} | {"mention-user1":{"type":"user","id":"participant3a","name":"participant3a-displayname"},"mention-user2":{"type":"user","id":"participant3","name":"participant3-displayname"}} | + | public room | users | participant1 | participant1-displayname | Mention to {mention-user2} and {mention-user1} | {"mention-user1":{"type":"user","id":"participant3a","name":"participant3a-displayname"},"mention-user2":{"type":"user","id":"participant3","name":"participant3-displayname"}} | |