forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-72090 navigation: New unit and behat tests for navigation.
This adds new tests for functions that impact the more menu and the course administration overflow.
- Loading branch information
Showing
2 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
@javascript @theme_boost | ||
Feature: Course administration navigation | ||
As a teacher | ||
I can navigate to course administration pages | ||
|
||
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 | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| teacher1 | C1 | editingteacher | | ||
|
||
Scenario: A Teacher can navigate to the course Import page. | ||
Given I log in as "teacher1" | ||
When I am on "Course 1" course homepage | ||
And I navigate to "Course administration" in current page administration | ||
Then I should see "Find a course to import data from:" | ||
|
||
Scenario Outline: A Teacher can navigate to other course administration pages. | ||
Given I log in as "teacher1" | ||
When I am on "Course 1" course homepage | ||
And I navigate to "Course administration" in current page administration | ||
And I select "<adminpage>" from the "jump" singleselect | ||
Then I should see "<title>" | ||
|
||
Examples: | ||
| adminpage | title | | ||
| Backup | Backup settings | | ||
| Restore | Import a backup file | | ||
| Import | Find a course to import data from: | | ||
| Reset | Reset course | | ||
|
||
Scenario: An Administrator can view the course copy page. | ||
Given I log in as "admin" | ||
When I am on "Course 1" course homepage | ||
And I navigate to "Course administration" in current page administration | ||
And I select "Copy course" from the "jump" singleselect | ||
Then I should see "This course will be duplicated and put into the selected course category" |