MDL-44246 behat: New mod_quiz test when JS is disabled

This commit is contained in:
David Monllao
2014-03-11 17:22:18 +08:00
parent ef0ee34df0
commit 0b5ac03e36
+11 -3
View File
@@ -40,7 +40,10 @@ Feature: Add a quiz
And I press "Next"
And I should see "Answer saved"
And I press "Submit all and finish"
And I press "Submit all and finish"
@javascript
Scenario: Add and configure small quiz and perform an attempt as a student with Javascript enabled
Then I click on "Submit all and finish" "button" in the "Confirmation" "dialogue"
And I should see "So you think it is true"
And I should see "Thank you, this is the general feedback"
And I should see "The correct answer is 'False'."
@@ -48,5 +51,10 @@ Feature: Add a quiz
And I should see "Highest grade: 0.00 / 10.00."
And I log out
@javascript
Scenario: Add and configure small quiz and perform an attempt as a student with Javascript enabled
Scenario: Add and configure small quiz and perform an attempt as a student with Javascript disabled
Then I should see "So you think it is true"
And I should see "Thank you, this is the general feedback"
And I should see "The correct answer is 'False'."
And I follow "Finish review"
And I should see "Highest grade: 0.00 / 10.00."
And I log out