mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-73722 course: behat test for other users page
- Loading branch information
1 parent
91683bf
commit 5ddae1a
Showing
2 changed files
with
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@core @core_course @javascript | ||
Feature: Test if displaying the course other users works correctly: | ||
As a user I need to see the other users who have permissions in a course without being enrolled. | ||
|
||
Background: | ||
Given the following "categories" exist: | ||
| name | category | idnumber | | ||
| Cat 1 | 0 | CAT1 | | ||
And the following "courses" exist: | ||
| fullname | shortname | category | format | | ||
| Course 1 | C1 | CAT1 | topics | | ||
And the following "users" exist: | ||
| username | firstname | lastname | email | | ||
| teacher1 | Teacher | 1 | teacher1@example.com | | ||
| manager1 | Manager | 1 | manager1@example.com | | ||
| student1 | Student | 1 | student1@example.com | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| teacher1 | C1 | editingteacher | | ||
| student1 | C1 | student | | ||
|
||
Scenario: Test other users list in a course | ||
Given I log in as "admin" | ||
And I am on the "Course 1" "other users" page | ||
And I should see "Course 1: 0 other users" | ||
And the following "role assigns" exist: | ||
| user | role | contextlevel | reference | | ||
| manager1 | manager | System | | | ||
And I am on the "Course 1" "other users" page | ||
And I should see "Course 1: 1 other users" | ||
And I should see "Manager 1" |
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