MDL-87810 quiz: Accessibility Behat coverage for quiz attempt
This commit is contained in:
@@ -22,10 +22,10 @@ Feature: Enable deferred or immediate feedback for quiz
|
||||
| contextlevel | reference | name |
|
||||
| Activity module | qbank1 | Test questions |
|
||||
And the following "questions" exist:
|
||||
| questioncategory | qtype | name | questiontext |
|
||||
| Test questions | truefalse | TF1 | First question |
|
||||
| questioncategory | qtype | name | questiontext | generalfeedback |
|
||||
| Test questions | truefalse | TF1 | <a href="https://moodle.org">Moodle</a> is the best LMS | You should know that <a href="https://moodle.org">Moodle</a> is the best LMS |
|
||||
|
||||
@javascript
|
||||
@javascript @accessibility
|
||||
Scenario: Attempt quiz with How questions behave set to Deferred Feedback
|
||||
Given the following "activity" exists:
|
||||
| activity | quiz |
|
||||
@@ -48,16 +48,18 @@ Feature: Enable deferred or immediate feedback for quiz
|
||||
# Confirm that check button does not exist when attempting quiz
|
||||
Then "Check Question 1" "button" should not exist
|
||||
And I set the field "False" to "1"
|
||||
And the "region-main" "region" should meet accessibility standards
|
||||
And I press "Finish attempt ..."
|
||||
And I should not see "This is the wrong answer."
|
||||
And I should not see "You should have selected true."
|
||||
And I should not see "You should know that Moodle is the best LMS"
|
||||
And I should not see "The correct answer is 'True'."
|
||||
And I press "Submit all and finish"
|
||||
# Confirm that quiz answer feedback only appears when attempt is submitted
|
||||
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
|
||||
And I should see "This is the wrong answer."
|
||||
And I should see "You should have selected true."
|
||||
And I should see "You should know that Moodle is the best LMS"
|
||||
And I should see "The correct answer is 'True'."
|
||||
And the "region-main" "region" should meet accessibility standards
|
||||
|
||||
Scenario: Attempt quiz with How questions behave set to Immediate Feedback
|
||||
Given the following "activity" exists:
|
||||
@@ -101,7 +103,7 @@ Feature: Enable deferred or immediate feedback for quiz
|
||||
| 1 | True |
|
||||
When I am on the "Quiz 1" "quiz activity" page logged in as student1
|
||||
And I click on "Review" "link"
|
||||
Then I should see "You should have selected true."
|
||||
Then I should see "You should know that Moodle is the best LMS"
|
||||
And I <visibility> see "This is the right answer."
|
||||
And I <visibility> see "The correct answer is 'True'."
|
||||
And the following <visibility> exist in the "quizreviewsummary" table:
|
||||
|
||||
Reference in New Issue
Block a user