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"
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"
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"
| 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"
| 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"
| student1 | C1 | student |
| student2 | C1 | student |
And I log in as "student1"
- And I follow "My home"
+ And I click on "My home" "link" in the "Navigation" "block"
Scenario: Add blocks to page
When I press "Customise this page"
| student1 | C1 | student |
| student2 | C1 | student |
And I log in as "student1"
- And I follow "My home"
+ And I click on "My home" "link" in the "Navigation" "block"
Scenario: Add blocks to page and reset
When I press "Customise this page"
Scenario: The comments block can be added to My home by default
And I log in as "student1"
- And I follow "My home"
+ And I click on "My home" "link" in the "Navigation" "block"
And I press "Customise this page"
Then the "Add a block" select box should contain "Comments"
And the "Add a block" select box should contain "Courses"
| block/html:myaddinstance | Prohibit |
And I log out
And I log in as "student1"
- And I follow "My home"
+ And I click on "My home" "link" in the "Navigation" "block"
And I press "Customise this page"
Then the "Add a block" select box should not contain "Comments"
And the "Add a block" select box should not contain "Courses"
@javascript
Scenario: Verify the password field is enabled/disabled based on authentication selected, in user edit advanced page.
Given I log in as "admin"
- And I follow "My home"
+ And I click on "My home" "link" in the "Navigation" "block"
When I navigate to "Add a new user" node in "Site administration > Users > Accounts"
Then the "newpassword" "field" should be enabled
And I set the field "auth" to "Web services authentication"