You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1011 B
27 lines
1011 B
@javascript @theme_classic
|
|
Feature: Course administration menu
|
|
To navigate in classic theme teachers need to use the course administration menu
|
|
|
|
Background:
|
|
Given the following "courses" exist:
|
|
| fullname | shortname |
|
|
| Course 1 | C1 |
|
|
And the following "users" exist:
|
|
| username | firstname | lastname | email |
|
|
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
| student1 | Student | 1 | student1@example.com |
|
|
And the following "course enrolments" exist:
|
|
| user | course | role |
|
|
| teacher1 | C1 | editingteacher |
|
|
| student1 | C1 | student |
|
|
|
|
Scenario: Teacher can use the course administration menu
|
|
And I log in as "teacher1"
|
|
And I am on "Course 1" course homepage
|
|
And I should see the page administration menu
|
|
|
|
Scenario: Student cannot see the course administration menu
|
|
And I log in as "student1"
|
|
And I am on "Course 1" course homepage
|
|
And I should not see the page administration menu
|
|
And I log out
|
|
|