1 |
efrain |
1 |
@core @core_my
|
|
|
2 |
Feature: Reset dashboard page to default
|
|
|
3 |
In order to remove customisations from dashboard page
|
|
|
4 |
As a user
|
|
|
5 |
I need to reset dashboard page
|
|
|
6 |
|
|
|
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 "student1"
|
|
|
20 |
|
|
|
21 |
Scenario: Add blocks to page and reset
|
|
|
22 |
When I turn editing mode on
|
|
|
23 |
And I add the "Latest announcements" block
|
|
|
24 |
And I add the "Comments" block
|
|
|
25 |
And I press "Reset page to default"
|
|
|
26 |
Then I should not see "Latest announcements"
|
|
|
27 |
And I should see "Timeline"
|
|
|
28 |
And I should see "Calendar"
|
|
|
29 |
And I should not see "Upcoming events"
|
|
|
30 |
And I should not see "Comments"
|
|
|
31 |
And I should not see "Reset page to default"
|