mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
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:
parent
e36d7d57ae
commit
cd3a6a78b6
@ -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.
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user