Skip to content

Commit fd0ac9f

Browse files
committed
CI: Move course creation requests to ensure course TEMP has id 1 - refs #7149
1 parent c65135f commit fd0ac9f

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

tests/behat/features/course.feature

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# features/courseTools.feature
1+
# features/courseTools.feature#
2+
# This test leaves course cid=1 titled "TEMP" available for other tests
23
@common @tools
34
Feature: Course tools basic testing
45
In order to use a course
@@ -16,15 +17,6 @@ Feature: Course tools basic testing
1617
Given I am on "/main/admin/index.php"
1718
Then I should see "Add course"
1819

19-
Scenario: Create a private course before testing
20-
Given I am on "/main/admin/course_add.php"
21-
Then I should not see "not authorized"
22-
When I fill in "title" with "TEMP_PRIVATE"
23-
Then I check the "Private access (access authorized to group members only)" radio button
24-
And I press "submit"
25-
Then wait for the page to be loaded
26-
Then I should see "added"
27-
2820
Scenario: Create a course before testing
2921
Given I am on "/main/admin/course_add.php"
3022
When I fill in "title" with "TEMP"
@@ -165,5 +157,11 @@ Feature: Course tools basic testing
165157
# And I press "submit"
166158
# Then I should not see "The course password is incorrect"
167159

168-
169-
160+
Scenario: Create a private course before testing
161+
Given I am on "/main/admin/course_add.php"
162+
Then I should not see "not authorized"
163+
When I fill in "title" with "TEMP_PRIVATE"
164+
Then I check the "Private access (access authorized to group members only)" radio button
165+
And I press "submit"
166+
Then wait for the page to be loaded
167+
Then I should see "added"

0 commit comments

Comments
 (0)