Test Area (v0.7) - Execute the attached slash command with a button click The tests below might need to get adjusted (or added) to match Revised step execution: https://mattermost.atlassian.net/browse/MM-27012 |
---|
Test ID | Test Case | Test Steps | Result | Notes |
99 | A checklist item configured without a slash command does not have a Run button next to it | Log in as user-1. Launch playbook backstage. Click “New Playbook”. Enter “Apb” as the playbook name. Change the name of “Default Stage” to “S1”. Click “Add new checklist item”. Enter “C1” as the item name. Don’t add anything for the slash command. Save playbook. Switch to normal channel view. Start a new incident using “Apb”. Once the incident is started, in the incident RHS, examine the checklist item “C1” under “S1”. Verify that “C1” does not have any “Run” button. V
| | |
100 | A checklist item configured with a valid slash command has a Run button next to it | Continue from the above test. Launch playbook. Find and click “Apb” to edit. Add slash command /away for “C1”. Switch to normal channel view. Start a new incident using “Apb”. Once the incident is started, in the incident RHS, verify that “C1” show /away under it which has a Run button next to it.
| | |
101 | A checklist item configured with an invalid slash command does not have a Run button next to it | Continue from the above test. Launch playbook backstage. Find and click “Apb” to edit. Add a new checklist item “C2” under “S1”. Add slash command invalid text for “C2”. Save playbook. Switch to normal channel view. Start a new incident using “Apb”. Once the incident has started, find “C2” under “S1”. Verify that the slash command for “C2” doesn’t have a Run button next to it.
| | |
102 | A checklist item configured with a nonexistent slash command does not have a Run button next to it | Continue from the above test. Launch playbook backstage. Find and click “Apb” to edit. Add a new checklist item “C3” under “S1”. Add slash command /invalidcommand for “C3”. Save playbook. Switch to normal channel view. Start a new incident “Ia1” using “Apb”. Once the incident has started, find “C3” under “S1”. Verify that the slash command for “C3” doesn’t have a Run button next to it.
| | |
103 | Clicking the Run button for a checklist slash command runs the slash command | Continue from the above test. Open up the incident RHS for “Ia1”. Find “C1” under stage “S1”. Click the Run button next to “C1”. Verify that clicking the Run button executes so that the status of user-1 is now set to “away”.
| | |
104 | Plugin posts a message in the incident channel when a slash command Run is clicked | Continue from the above test. Verify that plugin posts a message in the “Ia1” incident channel to notify that the slash command for “C1” has been run.
| | A message that the checklist item slash command was run (not the slash command system message) |
105 | Running a slash command with system message attached to it post the slash command system message in the incident channel | Continue from the above test. Verify that the system message for the /away command “System: You are now away (Only visible to you)” is posted in the incident channel.
| | |
106 | In case of two valid slash commands, the running the command from the checklist item will only run the first command successfully | Continue from the above test. Launch playbook backstage. Find and click “Apb” to edit. Under “S1” add a new checklist item “C5”. Add the following for “C5’s” slash command: /online /away . Switch to normal channel view. Start a new incident using “Apb”. Once the incident has been started, find “C5” in the incident RHS. Click the Run button next to “C5”. Verify that the status of user-1 is now set to “online” and not “away”.
| | This is in sync with the core feature behavior |
107 | Running an invalid slash command from RHS checklist shows an ‘invalid slash command’ error | Depends on the steps in #102. | | Like core feature? |
108 | A slash command can be run multiple times from the RHS checklist | Continue from the above tests. Launch playbook backstage. Find and click “Apb” to edit. Under “S1” add a new checklist item “C6”. Add /shrug as the slash command for “C6”. Switch to normal channel view. Start a new incident using “Apb”. Once the incident has been started, find “C6” in the incident RHS. Click the Run button for “C6”. Verify that the /shrug command is executed successfully and a shrug message is posted in the center channel. Repeat steps 8-9 multiple times.
| | |
109 | A plugin post notifies when a slash command fails to run successfully | Verify that when a slash command fails to execute by clicking the Run button, the plugin posts a message in the center channel notifying that the execution has failed. | | |