1 |
efrain |
1 |
@block @block_myprofile
|
|
|
2 |
Feature: The logged in user block allows users to view their profile information on the front page
|
|
|
3 |
In order to enable the logged in user block on the frontpage
|
|
|
4 |
As an admin
|
|
|
5 |
I can add the logged in user block to the frontpage and view my information
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email | idnumber |
|
|
|
10 |
| teacher1 | Teacher | One | teacher1@example.com | T1 |
|
|
|
11 |
And the following "blocks" exist:
|
|
|
12 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
|
|
13 |
| myprofile | System | 1 | site-index | side-pre |
|
|
|
14 |
|
|
|
15 |
Scenario: Try to view the logged in user block as a guest
|
|
|
16 |
Given I log in as "guest"
|
|
|
17 |
When I am on site homepage
|
|
|
18 |
Then I should not see "Logged in user"
|
|
|
19 |
|
|
|
20 |
Scenario: View the logged in user block by a logged in user
|
|
|
21 |
Given I log in as "teacher1"
|
|
|
22 |
When I am on site homepage
|
|
|
23 |
Then I should see "Teacher One" in the "Logged in user" "block"
|