@@ -3,6 +3,7 @@ Feature: chat/public
3
3
Given user "participant1" exists
4
4
Given user "participant2" exists
5
5
Given user "participant3" exists
6
+ Given user "participant3a" exists
6
7
7
8
Scenario : message without enrichable references has empty parameters
8
9
Given user "participant1" creates room "public room"
@@ -48,3 +49,14 @@ Feature: chat/public
48
49
Then user "participant1" sees the following messages in room "public room" with 200
49
50
| room | actorType | actorId | actorDisplayName | message | messageParameters |
50
51
| 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 "}} |
52
+
53
+ Scenario : message with mentions of subname users (uid1 is fully part of uid2)
54
+ Given user "participant1" creates room "public room"
55
+ | roomType | 3 |
56
+ | roomName | room |
57
+ When user "participant1" sends message "Mention to @participant3 and @participant3a" to room "public room" with 201
58
+ When user "participant1" sends message "Mention to @participant3a and @participant3" to room "public room" with 201
59
+ Then user "participant1" sees the following messages in room "public room" with 200
60
+ | room | actorType | actorId | actorDisplayName | message | messageParameters |
61
+ | 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 "}} |
62
+ | public room | users | participant1 | participant1 -displayname | Mention to {mention -user1 } and {mention -user2 } | {"mention -user1 ":{"type ":"user ","id ":"participant3 ","name ":"participant3 -displayname "},"mention -user2 ":{"type ":"user ","id ":"participant3a ","name ":"participant3a -displayname "}} |
0 commit comments