MDL-45893 my: Specifically follow My home from block in Behat tests

This commit is contained in:
Frederic Massart 2014-10-08 16:16:01 +08:00
parent 140f46a238
commit dcb59c872c
6 changed files with 12 additions and 12 deletions

View file

@ -22,7 +22,7 @@ Feature: Test expand my courses navigation setting
Scenario: The My Courses branch is expanded on the My Moodle page by default
When I log in as "student1"
And I follow "My home"
And I click on "My home" "link" in the "Navigation" "block"
Then I should see "c1" in the "Navigation" "block"
And I should see "c2" in the "Navigation" "block"
And I should not see "c3" in the "Navigation" "block"
@ -33,8 +33,8 @@ Feature: Test expand my courses navigation setting
And I set the following administration settings values:
| Show My courses expanded on My home | 0 |
And I log out
Given I log in as "student1"
And I follow "My home"
When I log in as "student1"
And I click on "My home" "link" in the "Navigation" "block"
Then I should not see "c1" in the "Navigation" "block"
And I should not see "c2" in the "Navigation" "block"
And I should not see "c3" in the "Navigation" "block"
@ -45,8 +45,8 @@ Feature: Test expand my courses navigation setting
And I set the following administration settings values:
| Show My courses expanded on My home | 0 |
And I log out
Given I log in as "student1"
And I follow "My home"
When I log in as "student1"
And I click on "My home" "link" in the "Navigation" "block"
And I should not see "c1" in the "Navigation" "block"
And I should not see "c2" in the "Navigation" "block"
And I should not see "c3" in the "Navigation" "block"

View file

@ -37,7 +37,7 @@ Feature: View my courses in navigation block
| Show my course categories | 0 |
And I log out
And I log in as "student1"
When I follow "My home"
When I click on "My home" "link" in the "Navigation" "block"
Then I should not see "cat1" in the "Navigation" "block"
And I should not see "cat2" in the "Navigation" "block"
And I should see "c1" in the "Navigation" "block"
@ -53,7 +53,7 @@ Feature: View my courses in navigation block
| Show my course categories | 1 |
And I log out
And I log in as "student1"
When I follow "My home"
When I click on "My home" "link" in the "Navigation" "block"
Then I should see "cat1" in the "Navigation" "block"
And I should see "cat3" in the "Navigation" "block"
And I should not see "cat2" in the "Navigation" "block"