MDL-50516 mod_lesson: changes to existing behat tests

This commit is contained in:
Mark Nelson 2015-08-12 23:20:46 -07:00 committed by Andrew Nicols
parent ecaff8f042
commit ab2d8946cd

View file

@ -84,8 +84,7 @@ Feature: In a lesson activity, students can navigate through a series of pages i
And I set the following fields to these values: And I set the following fields to these values:
| Your answer | 2 | | Your answer | 2 |
And I press "Submit" And I press "Submit"
And I should see "Correct answer" And I should see "Maximum number of attempts reached - Moving to next page"
And I should not see "Incorrect answer"
And I press "Continue" And I press "Continue"
And I should see "Congratulations - end of lesson reached" And I should see "Congratulations - end of lesson reached"
And I should see "Your score is 0 (out of 1)." And I should see "Your score is 0 (out of 1)."
@ -128,6 +127,6 @@ Feature: In a lesson activity, students can navigate through a series of pages i
And I set the following fields to these values: And I set the following fields to these values:
| wrong | 1 | | wrong | 1 |
And I press "Submit" And I press "Submit"
And I should see "(Maximum number of attempts reached - Moving to next page)" And I should not see "Yes, I'd like to try again"
And I press "Continue" And I press "Continue"
And I should see "Congratulations - end of lesson reached" And I should see "Congratulations - end of lesson reached"