MDL-64505 theme_classic: Behat updates for screen size false failures

This fixes some behat failures in the Classic theme,
which were caused by the default screen size obfuscating page
elements for behat, where a normal user would still be able to
identify them.
This commit is contained in:
Michael Hawkins 2019-02-21 16:26:47 +08:00
parent 1815657b30
commit ba2b508ca7
4 changed files with 4 additions and 0 deletions

View file

@ -34,6 +34,7 @@ Feature: The recently accessed courses block allows users to easily access their
When I am on "Course 1" course homepage
And I am on "Course 2" course homepage
And I follow "Dashboard" in the user menu
And I change window size to "large"
Then I should see "Course 1" in the "Recently accessed courses" "block"
And I should see "Course 2" in the "Recently accessed courses" "block"
And I should not see "Course 3" in the "Recently accessed courses" "block"

View file

@ -35,4 +35,5 @@ Feature: The recently accessed items block allows users to easily access their m
Given I am on "Course 1" course homepage
When I follow "Test forum name"
And I follow "Dashboard" in the user menu
And I change window size to "large"
Then I should see "Test forum name" in the "Recently accessed items" "block"

View file

@ -34,6 +34,7 @@ Feature: Role assignments can be made at the category level
| Teacher | Not assignable |
| Non-editing teacher | Not assignable |
| Student | Not assignable |
And I change window size to "large"
And I log out
And I log in as "manager"
And I am on course index

View file

@ -42,6 +42,7 @@ Feature: Browse course list and return back from enrolment page
And I press "Save changes"
And I log out
When I log in as "user2"
And I change window size to "large"
And I open my profile in edit mode
And I expand "Courses" node
And I expand "Sample category" node