MDL-72714 behat: Make the window larger earlier

The step that causes the problem is:

And I navigate to "Badges > Add a new badge" in current page administration

(because "Add a new badge" is exactly on the edge (bottom) of the window)

So we need to make the window large before it, not after it, or the
"Add a new badge" link won't be ever clicked.
This commit is contained in:
Eloy Lafuente (stronk7) 2021-10-01 22:40:10 +02:00
parent bd12395717
commit 8e90d8309c
3 changed files with 3 additions and 3 deletions

View file

@ -224,8 +224,8 @@ Feature: Award badges
| Description | Submit your online text | | Description | Submit your online text |
| id_completion | 1 | | id_completion | 1 |
And I am on "Course 1" course homepage And I am on "Course 1" course homepage
And I navigate to "Badges > Add a new badge" in current page administration
And I change window size to "large" And I change window size to "large"
And I navigate to "Badges > Add a new badge" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| Name | Course Badge | | Name | Course Badge |
| Description | Course badge description | | Description | Course badge description |

View file

@ -35,8 +35,8 @@ Feature: Award badges based on activity completion
| 1 | False | | 1 | False |
And I log in as "teacher1" And I log in as "teacher1"
And I am on "Course 1" course homepage And I am on "Course 1" course homepage
And I navigate to "Badges > Add a new badge" in current page administration
And I change window size to "large" And I change window size to "large"
And I navigate to "Badges > Add a new badge" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| Name | Course Badge | | Name | Course Badge |
| Description | Course badge description | | Description | Course badge description |

View file

@ -39,8 +39,8 @@ Feature: Award badges based on competency completion
And I click on "Save changes" "button" in the "Configure course competencies" "dialogue" And I click on "Save changes" "button" in the "Configure course competencies" "dialogue"
# Add a badge to the course # Add a badge to the course
And I am on "Course 1" course homepage And I am on "Course 1" course homepage
And I navigate to "Badges > Add a new badge" in current page administration
And I change window size to "large" And I change window size to "large"
And I navigate to "Badges > Add a new badge" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| Name | Course Badge | | Name | Course Badge |
| Description | Course badge description | | Description | Course badge description |