MDL-52964 Qtype: Small fixes to behat tests

This applies some small changes to proposed behat tests:

- Geting rid of the @javascript tag when it's not needed.
- Adding some missing @_switch_window tags.
- Fixing some scenario names, previously duplicated.
- Fixing some typos and whitespace.
This commit is contained in:
Eloy Lafuente (stronk7) 2016-02-18 01:42:22 +01:00
parent cad67991d4
commit 12d5994fc7
25 changed files with 33 additions and 53 deletions

View file

@ -18,7 +18,6 @@ Feature: Test creating a Matching question
And I follow "Course 1"
And I navigate to "Question bank" node in "Course administration"
@javascript
Scenario: Create a Matching question with 3 subquestions
When I add a "Matching" question filling the form with:
| Question name | match-001 |

View file

@ -24,7 +24,7 @@ Feature: Test editing a Matching question
And I follow "Course 1"
And I navigate to "Question bank" node in "Course administration"
@javascript
@javascript @_switch_window
Scenario: Edit a Matching question
When I click on "Edit" "link" in the "Matching for editing" "table_row"
And I set the following fields to these values:

View file

@ -23,7 +23,6 @@ Feature: Test exporting Matching questions
And I log in as "teacher1"
And I follow "Course 1"
@javascript
Scenario: Export a Matching question
When I navigate to "Export" node in "Course administration > Question bank"
And I set the field "id_format_xml" to "1"

View file

@ -24,8 +24,8 @@ Feature: Preview a Matching question
And I follow "Course 1"
And I navigate to "Question bank" node in "Course administration"
@javascript
Scenario: Preview a question and submit a correct response.
@javascript @_switch_window
Scenario: Preview a Matching question and submit a correct response.
When I click on "Edit" "link" in the "matching-001" "table_row"
And I set the following fields to these values:
| Shuffle | 0 |
@ -42,8 +42,8 @@ Feature: Preview a Matching question
And I should see "General feedback."
And I switch to the main window
@javascript
Scenario: Preview a question and submit a partially correct response.
@javascript @_switch_window
Scenario: Preview a Matching question and submit a partially correct response.
When I click on "Edit" "link" in the "matching-001" "table_row"
And I set the following fields to these values:
| Shuffle | 0 |
@ -60,8 +60,8 @@ Feature: Preview a Matching question
And I should see "General feedback."
And I switch to the main window
@javascript
Scenario: Preview a question and submit an incorrect response.
@javascript @_switch_window
Scenario: Preview a Matching question and submit an incorrect response.
When I click on "Edit" "link" in the "matching-001" "table_row"
And I set the following fields to these values:
| Shuffle | 0 |