diff options
author | Vitor Mattos <vitor@php.rio> | 2022-04-19 20:36:41 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-04-19 20:53:30 +0300 |
commit | bfdca047821bd836edd478c1f430437daec397a6 (patch) | |
tree | 4a84698a9876ec1d85b88651675df462ccbae6f6 /tests | |
parent | 9b9d30b9f7ef266af317c17ca33c157451027ba8 (diff) |
VueJS Changes to move my reactions to parent
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/bootstrap/FeatureContext.php | 5 | ||||
-rw-r--r-- | tests/integration/features/reaction/react.feature | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index da36775f0..ee5ddac76 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -1705,6 +1705,11 @@ class FeatureContext implements Context, SnippetAcceptingContext { } if ($includeReactions) { $data['reactions'] = json_encode($message['reactions'], JSON_UNESCAPED_UNICODE); + if (isset($message['myReactions'])) { + $data['myReactions'] = json_encode($message['myReactions'], JSON_UNESCAPED_UNICODE); + } else { + $data['myReactions'] = null; + } } return $data; }, $messages)); diff --git a/tests/integration/features/reaction/react.feature b/tests/integration/features/reaction/react.feature index 10ec2901f..86b796f1d 100644 --- a/tests/integration/features/reaction/react.feature +++ b/tests/integration/features/reaction/react.feature @@ -18,16 +18,16 @@ Feature: reaction/react | room | users | participant1 | participant1-displayname | user_added | | room | users | participant1 | participant1-displayname | conversation_created | Then user "participant1" sees the following messages in room "room" with 200 - | room | actorType | actorId | actorDisplayName | message | messageParameters | reactions | - | room | users | participant1 | participant1-displayname | Message 1 | [] | {"👍":1} | + | room | actorType | actorId | actorDisplayName | message | messageParameters | reactions | myReactions | + | room | users | participant1 | participant1-displayname | Message 1 | [] | {"👍":1} | | And user "participant1" react with "👍" on message "Message 1" to room "room" with 201 | actorType | actorId | actorDisplayName | reaction | | users | participant1 | participant1-displayname | 👍 | | users | participant2 | participant2-displayname | 👍 | And user "participant1" react with "🚀" on message "Message 1" to room "room" with 201 Then user "participant1" sees the following messages in room "room" with 200 - | room | actorType | actorId | actorDisplayName | message | messageParameters | reactions | - | room | users | participant1 | participant1-displayname | Message 1 | [] | {"👍":2,"🚀":1,"self":["👍","🚀"]} | + | room | actorType | actorId | actorDisplayName | message | messageParameters | reactions | myReactions | + | room | users | participant1 | participant1-displayname | Message 1 | [] | {"👍":2,"🚀":1} | ["👍","🚀"] | Then user "participant1" sees the following system messages in room "room" with 200 | room | actorType | actorId | actorDisplayName | systemMessage | | room | users | participant1 | participant1-displayname | reaction | |