summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-04-26 07:32:33 -0300
committerVitor Mattos <vitor@php.rio>2023-04-26 07:32:33 -0300
commitbb58b57f9ffb13f0b389637b5f572af193e42650 (patch)
tree7a46c02d5dd458676998f815e890f289478303c9 /tests
parent7d0b77df4b6b89eb67ad3885e8ab83dc5231de67 (diff)
* Convert the argument to PyStringNode to make possible match a json string
* Make the definition of steps more specific Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/command/command-list.feature15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/integration/features/command/command-list.feature b/tests/integration/features/command/command-list.feature
index 1ce18e2ed..d853e4839 100644
--- a/tests/integration/features/command/command-list.feature
+++ b/tests/integration/features/command/command-list.feature
@@ -5,17 +5,20 @@ Feature: command/command-list
Then the command was successful
And the command output contains the text "Output format"
- Scenario: List all available commands as plain text (default)
+ Scenario: List all available commands as plain text and verify if contains the help command as markdown table (default)
Given invoking occ with "talk:command:list"
Then the command was successful
- And the command output contains the text "Response values: 0 - No one"
+ And the command output contains the text "| help"
- Scenario: List all available commands as plain text
+ Scenario: List all available commands as plain text and verify if contains the help command as markdown table
Given invoking occ with "talk:command:list --output=plain"
Then the command was successful
- And the command output contains the text "Response values: 0 - No one"
+ And the command output contains the text "| help"
- Scenario: List all available commands as json
+ Scenario: List all available commands as json and verify if contains the help command as json format
Given invoking occ with "talk:command:list --output=json"
Then the command was successful
- And the command output contains the text "[{"
+ And the command output contains the text:
+ """
+ "name":"talk","command":"help","script":"help"
+ """