diff options
author | Vitor Mattos <vitor@php.rio> | 2023-05-02 06:35:32 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-05-03 04:58:47 -0300 |
commit | 54176a0ea63260953e2d1c51b83f32144b01a738 (patch) | |
tree | 66bf0e09dfb2b38440512b70e357d3c8246419e5 /tests | |
parent | abe35b37a514d15fab482f640a542beb6a4bd27f (diff) |
Make possible check more than one property from room object
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/bootstrap/FeatureContext.php | 2 | ||||
-rw-r--r-- | tests/integration/features/chat/one-to-one.feature | 9 | ||||
-rw-r--r-- | tests/integration/features/conversation/avatar.feature | 3 |
3 files changed, 5 insertions, 9 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index 924dac174..33235ba3b 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -1197,7 +1197,7 @@ class FeatureContext implements Context, SnippetAcceptingContext { $this->assertStatusCode($this->response, $statusCode); if ($formData instanceof TableNode) { - $xpectedAttributes = $formData->getColumnsHash()[0]; + $xpectedAttributes = $formData->getRowsHash(); $actual = $this->getDataFromResponse($this->response); foreach ($xpectedAttributes as $attribute => $expectedValue) { if ($expectedValue === 'NOT_EMPTY') { diff --git a/tests/integration/features/chat/one-to-one.feature b/tests/integration/features/chat/one-to-one.feature index 2d1782d89..ef3baf12a 100644 --- a/tests/integration/features/chat/one-to-one.feature +++ b/tests/integration/features/chat/one-to-one.feature @@ -74,13 +74,10 @@ Feature: chat/one-to-one | invite | participant2 | When user "participant2" set status to "online" with 200 (v1) Then user "participant1" gets room "one-to-one room" with 200 (v4) - | status | - | online | + | status | online | When user "participant2" set status to "offline" with 200 (v1) Then user "participant1" gets room "one-to-one room" with 200 (v4) - | status | - | offline | + | status | offline | Then user "participant2" set status to "away" with 200 (v1) Then user "participant1" gets room "one-to-one room" with 200 (v4) - | status | - | away | + | status | away | diff --git a/tests/integration/features/conversation/avatar.feature b/tests/integration/features/conversation/avatar.feature index 605eecbff..4b52e32bc 100644 --- a/tests/integration/features/conversation/avatar.feature +++ b/tests/integration/features/conversation/avatar.feature @@ -30,8 +30,7 @@ Feature: conversation/avatar | room2 | users | participant1 | avatar_set | You set the conversation picture | | room2 | users | participant1 | conversation_created | You created the conversation | And user "participant1" gets room "room2" with 200 (v4) - | avatarVersion | - | NOT_EMPTY | + | avatarVersion | NOT_EMPTY | Then the room "room2" has an avatar with 200 And The following headers should be set | X-NC-IsCustomAvatar | 0 | |