<NME> commands.feature
<BEF> ADDFILE
<MSG> Add basic integration tests for commands

Signed-off-by: Daniel Calviño Sánchez <bd7629e975cc0e00ea7cda4ab6a120f2ee42ac1b@gmail.com>

<DFF> @@ -0,0 +1,33 @@
+Feature: chat/commands
+  Background:
+    Given user "participant1" exists
+    Given user "participant2" exists
+
+  Scenario: user can see own help command and others can not
+    Given user "participant1" creates room "group room"
+      | roomType | 2 |
+      | roomName | room |
+    And user "participant1" adds "participant2" to room "group room" with 200
+    When user "participant1" sends message "/help" to room "group room" with 201
+    Then user "participant1" sees the following messages in room "group room" with 200
+      | room       | actorType | actorId | actorDisplayName | message                                    | messageParameters |
+      | group room | bots      | talk    | talk-bot         | There are currently no commands available. | []                |
+    And user "participant2" sees the following messages in room "group room" with 200
+
+  Scenario: user can see own help command along with regular messages and others can not
+    Given user "participant1" creates room "group room"
+      | roomType | 2 |
+      | roomName | room |
+    And user "participant1" adds "participant2" to room "group room" with 200
+    When user "participant1" sends message "Message 1" to room "group room" with 201
+    And user "participant1" sends message "/help" to room "group room" with 201
+    And user "participant1" sends message "Message 2" to room "group room" with 201
+    Then user "participant1" sees the following messages in room "group room" with 200
+      | room       | actorType | actorId      | actorDisplayName         | message                                    | messageParameters |
+      | group room | users     | participant1 | participant1-displayname | Message 2                                  | []                |
+      | group room | bots      | talk         | talk-bot                 | There are currently no commands available. | []                |
+      | group room | users     | participant1 | participant1-displayname | Message 1                                  | []                |
+    And user "participant2" sees the following messages in room "group room" with 200
+      | room       | actorType | actorId      | actorDisplayName         | message   | messageParameters |
+      | group room | users     | participant1 | participant1-displayname | Message 2 | []                |
+      | group room | users     | participant1 | participant1-displayname | Message 1 | []                |

{'commit': 'diff --git a/tests/integration/features/chat/commands.feature b/tests/integration/features/chat/commands.feature\nnew file mode 100644\nindex 000000000..c2e81752c\n--- /dev/null\n+++ b/tests/integration/features/chat/commands.feature\n@@ -0,0 +1,33 @@\n+Feature: chat/commands\n+  Background:\n+    Given user "participant1" exists\n+    Given user "participant2" exists\n+\n+  Scenario: user can see own help command and others can not\n+    Given user "participant1" creates room "group room"\n+      | roomType | 2 |\n+      | roomName | room |\n+    And user "participant1" adds "participant2" to room "group room" with 200\n+    When user "participant1" sends message "/help" to room "group room" with 201\n+    Then user "participant1" sees the following messages in room "group room" with 200\n+      | room       | actorType | actorId | actorDisplayName | message                                    | messageParameters |\n+      | group room | bots      | talk    | talk-bot         | There are currently no commands available. | []                |\n+    And user "participant2" sees the following messages in room "group room" with 200\n+\n+  Scenario: user can see own help command along with regular messages and others can not\n+    Given user "participant1" creates room "group room"\n+      | roomType | 2 |\n+      | roomName | room |\n+    And user "participant1" adds "participant2" to room "group room" with 200\n+    When user "participant1" sends message "Message 1" to room "group room" with 201\n+    And user "participant1" sends message "/help" to room "group room" with 201\n+    And user "participant1" sends message "Message 2" to room "group room" with 201\n+    Then user "participant1" sees the following messages in room "group room" with 200\n+      | room       | actorType | actorId      | actorDisplayName         | message                                    | messageParameters |\n+      | group room | users     | participant1 | participant1-displayname | Message 2                                  | []                |\n+      | group room | bots      | talk         | talk-bot                 | There are currently no commands available. | []                |\n+      | group room | users     | participant1 | participant1-displayname | Message 1                                  | []                |\n+    And user "participant2" sees the following messages in room "group room" with 200\n+      | room       | actorType | actorId      | actorDisplayName         | message   | messageParameters |\n+      | group room | users     | participant1 | participant1-displayname | Message 2 | []                |\n+      | group room | users     | participant1 | participant1-displayname | Message 1 | []                |\n', 'commit_subject': 'Add basic integration tests for commands', 'repo_name': 'nextcloud/spreed', 'committer': {'name': 'Joas Schilling', 'email': 'ab43a7c9cb5b2380afc4ddf8b3e2583169b39a02@schilljs.com', 'time_sec': '1557492425', 'tz_offset': '120', 'date': {'seconds': '1557492425'}}, 'commit_tree': 'bd78ee2ab5dd23c5d3af3d6d250e52ac95c8dd24', 'commit_message': 'Add basic integration tests for commands\n\nSigned-off-by: Daniel Calviño Sánchez <bd7629e975cc0e00ea7cda4ab6a120f2ee42ac1b@gmail.com>\n', 'language_name': 'PHP', 'license': 'agpl-3.0', 'hunks': '@@ -0,0 +1,33 @@\n+Feature: chat/commands\n+  Background:\n+    Given user "participant1" exists\n+    Given user "participant2" exists\n+\n+  Scenario: user can see own help command and others can not\n+    Given user "participant1" creates room "group room"\n+      | roomType | 2 |\n+      | roomName | room |\n+    And user "participant1" adds "participant2" to room "group room" with 200\n+    When user "participant1" sends message "/help" to room "group room" with 201\n+    Then user "participant1" sees the following messages in room "group room" with 200\n+      | room       | actorType | actorId | actorDisplayName | message                                    | messageParameters |\n+      | group room | bots      | talk    | talk-bot         | There are currently no commands available. | []                |\n+    And user "participant2" sees the following messages in room "group room" with 200\n+\n+  Scenario: user can see own help command along with regular messages and others can not\n+    Given user "participant1" creates room "group room"\n+      | roomType | 2 |\n+      | roomName | room |\n+    And user "participant1" adds "participant2" to room "group room" with 200\n+    When user "participant1" sends message "Message 1" to room "group room" with 201\n+    And user "participant1" sends message "/help" to room "group room" with 201\n+    And user "participant1" sends message "Message 2" to room "group room" with 201\n+    Then user "participant1" sees the following messages in room "group room" with 200\n+      | room       | actorType | actorId      | actorDisplayName         | message                                    | messageParameters |\n+      | group room | users     | participant1 | participant1-displayname | Message 2                                  | []                |\n+      | group room | bots      | talk         | talk-bot                 | There are currently no commands available. | []                |\n+      | group room | users     | participant1 | participant1-displayname | Message 1                                  | []                |\n+    And user "participant2" sees the following messages in room "group room" with 200\n+      | room       | actorType | actorId      | actorDisplayName         | message   | messageParameters |\n+      | group room | users     | participant1 | participant1-displayname | Message 2 | []                |\n+      | group room | users     | participant1 | participant1-displayname | Message 1 | []                |\n', 'addition_count': 33, 'deletion_count': 0, 'src_file': '/dev/null', 'tgt_file': 'b/tests/integration/features/chat/commands.feature', 'file_extension': '.feature', 'before_file': 'ADDFILE', 'message': 'Add basic integration tests for commands\n\nSigned-off-by: Daniel Calviño Sánchez <bd7629e975cc0e00ea7cda4ab6a120f2ee42ac1b@gmail.com>\n', 'author_name': 'Joas Schilling', 'lang': 'feature'}