forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-26680 my page My Moodle "reset to default" button
- Loading branch information
Showing
11 changed files
with
187 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@core @core_my | ||
Feature: Add blocks to my home page | ||
In order to add more functionality to my home page | ||
As a user | ||
I need to add blocks to my home page | ||
|
||
Background: | ||
Given the following "users" exists: | ||
| username | firstname | lastname | email | | ||
| student1 | Student | 1 | student1@asd.com | | ||
| student2 | Student | 2 | student2@asd.com | | ||
And the following "courses" exists: | ||
| fullname | shortname | format | | ||
| Course 1 | C1 | topics | | ||
And the following "course enrolments" exists: | ||
| user | course | role | | ||
| student1 | C1 | student | | ||
| student2 | C1 | student | | ||
And I log in as "student1" | ||
And I follow "My home" | ||
|
||
Scenario: Add blocks to page | ||
When I press "Customise this page" | ||
And I add the "Latest news" block | ||
And I add the "My latest badges" block | ||
Then I should see "Latest news" | ||
And I should see "My latest badges" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@core @core_my | ||
Feature: Reset my home page to default | ||
In order to remove customisations from my home page | ||
As a user | ||
I need to reset my home page | ||
|
||
Background: | ||
Given the following "users" exists: | ||
| username | firstname | lastname | email | | ||
| student1 | Student | 1 | student1@asd.com | | ||
| student2 | Student | 2 | student2@asd.com | | ||
And the following "courses" exists: | ||
| fullname | shortname | format | | ||
| Course 1 | C1 | topics | | ||
And the following "course enrolments" exists: | ||
| user | course | role | | ||
| student1 | C1 | student | | ||
| student2 | C1 | student | | ||
And I log in as "student1" | ||
And I follow "My home" | ||
|
||
Scenario: Add blocks to page and reset | ||
When I press "Customise this page" | ||
And I add the "Latest news" block | ||
And I add the "My latest badges" block | ||
And I press "Reset page to default" | ||
Then I should not see "Latest news" | ||
And I should not see "My latest badges" | ||
And I should not see "Reset page to default" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@core @core_user | ||
Feature: Add blocks to my profile page | ||
In order to add more functionality to my profile page | ||
As a user | ||
I need to add blocks to my profile page | ||
|
||
Background: | ||
Given the following "users" exists: | ||
| username | firstname | lastname | email | | ||
| student1 | Student | 1 | student1@asd.com | | ||
| student2 | Student | 2 | student2@asd.com | | ||
And the following "courses" exists: | ||
| fullname | shortname | format | | ||
| Course 1 | C1 | topics | | ||
And the following "course enrolments" exists: | ||
| user | course | role | | ||
| student1 | C1 | student | | ||
| student2 | C1 | student | | ||
And I log in as "admin" | ||
And I follow "View profile" | ||
|
||
Scenario: Add blocks to page | ||
When I press "Customise this page" | ||
And I add the "Latest news" block | ||
Then I should see "Latest news" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@core @core_user | ||
Feature: Reset my profile page to default | ||
In order to remove customisations from my profile page | ||
As a user | ||
I need to reset my profile page | ||
|
||
Background: | ||
Given the following "users" exists: | ||
| username | firstname | lastname | email | | ||
| student1 | Student | 1 | student1@asd.com | | ||
| student2 | Student | 2 | student2@asd.com | | ||
And the following "courses" exists: | ||
| fullname | shortname | format | | ||
| Course 1 | C1 | topics | | ||
And the following "course enrolments" exists: | ||
| user | course | role | | ||
| student1 | C1 | student | | ||
| student2 | C1 | student | | ||
And I log in as "admin" | ||
And I follow "View profile" | ||
|
||
Scenario: Add blocks to page and reset | ||
When I press "Customise this page" | ||
And I add the "Latest news" block | ||
And I press "Reset page to default" | ||
Then I should not see "Latest news" | ||
And I should not see "Reset page to default" |