Merge branch 'MDL-74172-master' of https://github.com/bmbrands/moodle
[moodle.git] / user / tests / behat / reset_page.feature
blobd83105ae57fdf20d48d4b9ac0c6f5c2a38e0ec1f
1 @core @core_user
2 Feature: Reset my profile page to default
3   In order to remove customisations from my profile page
4   As a user
5   I need to reset my profile page
7   Background:
8     Given the following "users" exist:
9       | username | firstname | lastname | email |
10       | student1 | Student | 1 | student1@example.com |
11       | student2 | Student | 2 | student2@example.com |
12     And the following "courses" exist:
13       | fullname | shortname | format |
14       | Course 1 | C1 | topics |
15     And the following "course enrolments" exist:
16       | user | course | role |
17       | student1 | C1 | student |
18       | student2 | C1 | student |
19     And I log in as "admin"
20     And I follow "View profile"
22   Scenario: Add blocks to page and reset
23     When I turn editing mode on
24     And I add the "Latest announcements" block
25     And I press "Reset page to default"
26     Then I should not see "Latest announcements"