MDL-50516 behat: Back/next button reloads page

When next/back button is pressed in phantomjs/browserkit
it reload page, so adding a bug_phantomjs, so that we can
test the lesson re-attempt scenario
This commit is contained in:
rajesh Taneja 2015-09-10 14:30:28 +08:00
parent e36d7d57ae
commit cd3a6a78b6
2 changed files with 2 additions and 1 deletions

View File

@ -1416,6 +1416,7 @@ class behat_general extends behat_base {
/**
* Presses a given button in the browser.
* NOTE: Phantomjs and goutte driver reloads page while navigating back and forward.
*
* @Then /^I press the "(back|forward|reload)" button in the browser$/
* @param string $button the button to press.

View File

@ -115,7 +115,7 @@ Feature: In a lesson activity, students can not re-attempt a question more than
When I press "Submit"
Then I should see "Maximum number of attempts reached - Moving to next page"
@javascript
@javascript @_bug_phantomjs
Scenario: Check that we can not click back on the browser at the last quiz result page and re-attempt the last question to get full marks
Given I log in as "student1"
And I follow "Course 1"