mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-70173 theme_boost: Fix empty link issue on the "Go to top" button
On behat, we have to use a more specific test step if we are looking for a "Go" button on a modal. The reason is that the html of the modal content is put after the html of the "Go to top" button, so behat may find the "Go to top" button if we just look for "Go".
This commit is contained in:
parent
97b0401443
commit
805df4f846
3 changed files with 7 additions and 7 deletions
|
@ -77,7 +77,7 @@ Feature: Edit quiz page - adding things
|
|||
When I press "Repaginate"
|
||||
Then I should see "Repaginate with"
|
||||
And I set the field "menuquestionsperpage" to "2"
|
||||
When I press "Go"
|
||||
When I click on "Go" "button" in the "Repaginate" "dialogue"
|
||||
And I should see "Essay 01 new" on quiz page "1"
|
||||
And I should see "Essay 02 new" on quiz page "1"
|
||||
And I should see "Essay 03 new" on quiz page "2"
|
||||
|
@ -231,7 +231,7 @@ Feature: Edit quiz page - adding things
|
|||
When I press "Repaginate"
|
||||
Then I should see "Repaginate with"
|
||||
And I set the field "menuquestionsperpage" to "1"
|
||||
When I press "Go"
|
||||
When I click on "Go" "button" in the "Repaginate" "dialogue"
|
||||
And I should see "Essay 03" on quiz page "1"
|
||||
And I should see "Essay 01" on quiz page "2"
|
||||
And I should see "Essay 02" on quiz page "3"
|
||||
|
|
|
@ -107,7 +107,7 @@ Feature: Edit quiz page - pagination
|
|||
# Repaginate one question per page.
|
||||
When I press "Repaginate"
|
||||
And I set the field "menuquestionsperpage" to "1"
|
||||
And I press "Go"
|
||||
And I click on "Go" "button" in the "Repaginate" "dialogue"
|
||||
Then I should see "Essay 01 new" on quiz page "1"
|
||||
And I should see "Essay 02 new" on quiz page "2"
|
||||
And I should see "Essay 03 new" on quiz page "3"
|
||||
|
@ -136,7 +136,7 @@ Feature: Edit quiz page - pagination
|
|||
# Repaginate with 2 questions per page.
|
||||
When I press "Repaginate"
|
||||
And I set the field "menuquestionsperpage" to "2"
|
||||
And I press "Go"
|
||||
And I click on "Go" "button" in the "Repaginate" "dialogue"
|
||||
Then I should see "Essay 01 new" on quiz page "1"
|
||||
And I should see "Essay 02 new" on quiz page "1"
|
||||
And I should see "Essay 03 new" on quiz page "2"
|
||||
|
@ -145,7 +145,7 @@ Feature: Edit quiz page - pagination
|
|||
# Repaginate with unlimited questions per page (All questions on Page 1).
|
||||
When I press "Repaginate"
|
||||
And I set the field "menuquestionsperpage" to "Unlimited"
|
||||
And I press "Go"
|
||||
And I click on "Go" "button" in the "Repaginate" "dialogue"
|
||||
Then I should see "Essay 01 new" on quiz page "1"
|
||||
And I should see "Essay 02 new" on quiz page "1"
|
||||
And I should see "Essay 03 new" on quiz page "1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue