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-79979 tool_generator: Use auto-enrol admin in new courses setting
- Loading branch information
Amaia Anabitarte
committed
Nov 21, 2023
1 parent
b58d1fd
commit f7fa5cb
Showing
3 changed files
with
47 additions
and
3 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,33 @@ | ||
@core @core_course @tool_generator | ||
Feature: Admins can create test courses | ||
In order to create testing information | ||
As an admin | ||
I need to create testing courses quickly | ||
|
||
@javascript | ||
Scenario: 'Auto-enrol admin in new courses' setting when creating a test course as admin | ||
Given I log in as "admin" | ||
And the following config values are set as admin: | ||
| enroladminnewcourse | 0 | | ||
And I navigate to "Development > Make test course" in site administration | ||
And I set the following fields to these values: | ||
| Size of course | XS | | ||
| Course full name | Fake course for testing | | ||
| Course short name | fake | | ||
And I press "Create course" | ||
And I click on "Continue" "link" | ||
And I navigate to course participants | ||
Then I should not see "Teacher" | ||
And I should not see "Nothing to display" | ||
And the following config values are set as admin: | ||
| enroladminnewcourse | 1 | | ||
And I navigate to "Courses > Add a new course" in site administration | ||
And I navigate to "Development > Make test course" in site administration | ||
And I set the following fields to these values: | ||
| Size of course | XS | | ||
| Course full name | New fake course for testing | | ||
| Course short name | newfake | | ||
And I press "Create course" | ||
And I click on "Continue" "link" | ||
And I navigate to course participants | ||
And I should see "Teacher" |
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