1 |
efrain |
1 |
@block @block_myprofile
|
|
|
2 |
Feature: The logged in user block allows users to view their profile information in a course
|
|
|
3 |
In order to enable the logged in user block in a course
|
|
|
4 |
As a teacher
|
|
|
5 |
I can add the logged in user block to a course and view my information
|
|
|
6 |
|
|
|
7 |
Scenario: View the logged in user block by a user in a course
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email | idnumber |
|
|
|
10 |
| teacher1 | Teacher | One | teacher1@example.com | T1 |
|
|
|
11 |
And the following "courses" exist:
|
|
|
12 |
| fullname | shortname | category |
|
|
|
13 |
| Course 1 | C1 | 0 |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| teacher1 | C1 | editingteacher |
|
|
|
17 |
When I log in as "teacher1"
|
|
|
18 |
And I am on "Course 1" course homepage with editing mode on
|
|
|
19 |
And I add the "Logged in user" block
|
|
|
20 |
Then I should see "Teacher One" in the "Logged in user" "block"
|