mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-73114-master' of https://github.com/bmbrands/moodle
- Loading branch information
Showing
8 changed files
with
84 additions
and
21 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
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,35 @@ | ||
@javascript @theme_boost | ||
Feature: Welcome message on boost | ||
To be welcome in moodle | ||
As a User | ||
I need to see a welcome message on the first page | ||
|
||
Scenario: Login and be welcomed on the homepage | ||
Given the following config values are set as admin: | ||
| defaulthomepage | 0 | | ||
When I log in as "admin" | ||
Then I should not see "Acceptance test site" in the "page-header" "region" | ||
And I should see "Welcome, Admin!" in the "page-header" "region" | ||
And I reload the page | ||
And I should not see "Welcome, Admin!" in the "page-header" "region" | ||
And I should see "Acceptance test site" in the "page-header" "region" | ||
|
||
Scenario: Login and be welcomed on the dashboard | ||
Given the following config values are set as admin: | ||
| defaulthomepage | 1 | | ||
When I log in as "admin" | ||
Then I should not see "Dashboard" in the "page-header" "region" | ||
And I should see "Welcome, Admin!" in the "page-header" "region" | ||
And I reload the page | ||
And I should not see "Welcome, Admin!" in the "page-header" "region" | ||
And I should see "Dashboard" in the "page-header" "region" | ||
|
||
Scenario: Login and be welcomed on the my courses page | ||
Given the following config values are set as admin: | ||
| defaulthomepage | 3 | | ||
When I log in as "admin" | ||
Then I should not see "My courses" in the "page-header" "region" | ||
And I should see "Welcome, Admin!" in the "page-header" "region" | ||
And I reload the page | ||
And I should not see "Welcome, Admin!" in the "page-header" "region" | ||
And I should see "My courses" in the "page-header" "region" |
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
32 changes: 32 additions & 0 deletions
32
theme/classic/tests/behat/welcome_to_classicmoodle.feature
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,32 @@ | ||
@javascript @theme_classic | ||
Feature: Welcome message on classic | ||
To be welcome in moodle | ||
As a User | ||
I need to see a welcome message on the first page | ||
|
||
Scenario: Login and be welcomed on the homepage | ||
Given the following config values are set as admin: | ||
| defaulthomepage | 0 | | ||
When I log in as "admin" | ||
Then I should see "Acceptance test site" in the "page-header" "region" | ||
And I should see "Welcome, Admin!" in the "page-header" "region" | ||
And I reload the page | ||
And I should not see "Welcome, Admin!" in the "page-header" "region" | ||
|
||
Scenario: Login and be welcomed on the dashboard | ||
Given the following config values are set as admin: | ||
| defaulthomepage | 1 | | ||
When I log in as "admin" | ||
Then I should see "Dashboard" in the "page-header" "region" | ||
And I should see "Welcome, Admin!" in the "page-header" "region" | ||
And I reload the page | ||
And I should not see "Welcome, Admin!" in the "page-header" "region" | ||
|
||
Scenario: Login and be welcomed on the my courses page | ||
Given the following config values are set as admin: | ||
| defaulthomepage | 3 | | ||
When I log in as "admin" | ||
Then I should see "My courses" in the "page-header" "region" | ||
And I should see "Welcome, Admin!" in the "page-header" "region" | ||
And I reload the page | ||
And I should not see "Welcome, Admin!" in the "page-header" "region" |