Commit fcd4de86 authored by Adrian Greeve's avatar Adrian Greeve
Browse files

MDL-72090 navigation: Update to behat feature files for navigation.

This updates feature files to use the new steps to navigate to certain
pages.
parent 8a5e36fa
......@@ -15,8 +15,7 @@ Feature: Scorm with no calendar capabilites
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Users > Permissions" in current page administration
And I am on the "Course 1" "permissions" page
And I override the system permissions of "Teacher" role with:
| capability | permission |
| moodle/calendar:manageentries | Prohibit |
......
......@@ -39,8 +39,7 @@ Feature: Teachers can reset wiki pages, tags and files
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
And I press "Save changes"
And I should see "empty.txt"
And I am on "Course 1" course homepage
And I navigate to "Reset" in current page administration
And I am on the "Course 1" "reset" page
Scenario: Reset page, tags and files
Given I set the following fields to these values:
......
......@@ -28,7 +28,7 @@ Feature: Page administration menu
And I should see "Updating: Choice"
And I navigate to course participants
And I should see the page administration menu
And I navigate to "Users > Enrolment methods" in current page administration
And I am on the "Course 1" "Enrolment methods" page
And I should see "Enrolment methods"
And I log out
......
......@@ -82,8 +82,7 @@ Feature: Edit user enrolment
And I log in as "admin"
And I navigate to "Plugins > Enrolments > Manage enrol plugins" in site administration
And I click on "Enable" "link" in the "Course meta link" "table_row"
And I am on "Course 1" course homepage
And I add "Course meta link" enrolment method with:
And I add "Course meta link" enrolment method in "Course 1" with:
| Link course | C2 |
And I log out
And I log in as "teacher1"
......
......@@ -117,8 +117,7 @@ Feature: Access to full profiles of users
And I should see "The details of this user are not available to you"
And I log out
And I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Users > Groups" in current page administration
And I am on the "Course 1" "groups" page
And I press "Create group"
And I set the following fields to these values:
| Group name | Group 1 |
......
......@@ -276,9 +276,7 @@ Feature: View course participants
Scenario: Check status after disabling manual enrolment
Given I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to course participants
When I navigate to "Users > Enrolment methods" in current page administration
And I am on the "Course 1" "enrolment methods" page
And I click on "Disable" "link" in the "Manual enrolments" "table_row"
Then I navigate to course participants
And I should see "Not current" in the "student0x" "table_row"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment