1 |
efrain |
1 |
@javascript @theme_classic
|
|
|
2 |
Feature: Welcome message on classic
|
|
|
3 |
To be welcome in moodle
|
|
|
4 |
As a User
|
|
|
5 |
I need to see a welcome message on the first page
|
|
|
6 |
|
|
|
7 |
Scenario: Login and be welcomed on the homepage
|
|
|
8 |
Given the following config values are set as admin:
|
|
|
9 |
| defaulthomepage | 0 |
|
|
|
10 |
When I log in as "admin"
|
|
|
11 |
Then I should see "Acceptance test site" in the "page-header" "region"
|
|
|
12 |
And I should see "Welcome, Admin!" in the "page-header" "region"
|
|
|
13 |
And I reload the page
|
|
|
14 |
And I should not see "Welcome, Admin!" in the "page-header" "region"
|
|
|
15 |
|
|
|
16 |
Scenario: Login and be welcomed on the dashboard
|
|
|
17 |
Given the following config values are set as admin:
|
|
|
18 |
| defaulthomepage | 1 |
|
|
|
19 |
When I log in as "admin"
|
|
|
20 |
Then I should see "Dashboard" in the "page-header" "region"
|
|
|
21 |
And I should see "Welcome, Admin!" in the "page-header" "region"
|
|
|
22 |
And I reload the page
|
|
|
23 |
And I should not see "Welcome, Admin!" in the "page-header" "region"
|
|
|
24 |
|
|
|
25 |
Scenario: Login and be welcomed on the my courses page
|
|
|
26 |
Given the following config values are set as admin:
|
|
|
27 |
| defaulthomepage | 3 |
|
|
|
28 |
When I log in as "admin"
|
|
|
29 |
Then I should see "My courses" in the "page-header" "region"
|
|
|
30 |
And I should see "Welcome, Admin!" in the "page-header" "region"
|
|
|
31 |
And I reload the page
|
|
|
32 |
And I should not see "Welcome, Admin!" in the "page-header" "region"
|