1 |
efrain |
1 |
@javascript @theme_classic
|
|
|
2 |
Feature: Course administration menu
|
|
|
3 |
To navigate in classic theme teachers need to use the course administration menu
|
|
|
4 |
|
|
|
5 |
Background:
|
|
|
6 |
Given the following "courses" exist:
|
|
|
7 |
| fullname | shortname |
|
|
|
8 |
| Course 1 | C1 |
|
|
|
9 |
And the following "users" exist:
|
|
|
10 |
| username | firstname | lastname | email |
|
|
|
11 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
12 |
| student1 | Student | 1 | student1@example.com |
|
|
|
13 |
And the following "course enrolments" exist:
|
|
|
14 |
| user | course | role |
|
|
|
15 |
| teacher1 | C1 | editingteacher |
|
|
|
16 |
| student1 | C1 | student |
|
|
|
17 |
|
|
|
18 |
Scenario: Teacher can use the course administration menu
|
|
|
19 |
And I log in as "teacher1"
|
|
|
20 |
And I am on "Course 1" course homepage
|
|
|
21 |
And I should see the page administration menu
|
|
|
22 |
|
|
|
23 |
Scenario: Student cannot see the course administration menu
|
|
|
24 |
And I log in as "student1"
|
|
|
25 |
And I am on "Course 1" course homepage
|
|
|
26 |
And I should not see the page administration menu
|
|
|
27 |
And I log out
|