mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
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:
parent
cad67991d4
commit
12d5994fc7
25 changed files with 33 additions and 53 deletions
|
@ -18,7 +18,6 @@ Feature: Test creating a True/False question
|
|||
And I follow "Course 1"
|
||||
And I navigate to "Question bank" node in "Course administration"
|
||||
|
||||
@javascript
|
||||
Scenario: Create a True/False question with Correct answer as False
|
||||
When I add a "True/False" question filling the form with:
|
||||
| Question name | true-false-001 |
|
||||
|
@ -29,8 +28,7 @@ Feature: Test creating a True/False question
|
|||
| Feedback for the response 'True'. | Well done! |
|
||||
| Feedback for the response 'False'. | Read more about England. |
|
||||
Then I should see "true-false-001"
|
||||
|
||||
@javascript
|
||||
|
||||
Scenario: Create a True/False question with Correct answer as True
|
||||
When I add a "True/False" question filling the form with:
|
||||
| Question name | true-false-002 |
|
||||
|
|
|
@ -24,7 +24,6 @@ Feature: Test editing a True/False question
|
|||
And I follow "Course 1"
|
||||
And I navigate to "Question bank" node in "Course administration"
|
||||
|
||||
@javascript
|
||||
Scenario: Edit a True/False question
|
||||
When I click on "Edit" "link" in the "true-false-001" "table_row"
|
||||
And I set the following fields to these values:
|
||||
|
|
|
@ -23,7 +23,6 @@ Feature: Test exporting True/False questions
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
|
||||
@javascript
|
||||
Scenario: Export a True/False question
|
||||
When I navigate to "Export" node in "Course administration > Question bank"
|
||||
And I set the field "id_format_xml" to "1"
|
||||
|
|
|
@ -24,8 +24,8 @@ Feature: Preview a Trtue/False 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 True/False question and submit a correct response.
|
||||
When I click on "Preview" "link" in the "true-false-001" "table_row"
|
||||
And I switch to "questionpreview" window
|
||||
And I set the field "How questions behave" to "Immediate feedback"
|
||||
|
@ -36,8 +36,8 @@ Feature: Preview a Trtue/False question
|
|||
And I should see "The correct answer is 'True'."
|
||||
And I switch to the main window
|
||||
|
||||
@javascript
|
||||
Scenario: Preview a question and submit an incorrect response.
|
||||
@javascript @_switch_window
|
||||
Scenario: Preview a True/False question and submit an incorrect response.
|
||||
When I click on "Preview" "link" in the "true-false-001" "table_row"
|
||||
And I switch to "questionpreview" window
|
||||
And I set the field "How questions behave" to "Immediate feedback"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue