Skip to content

Commit

Permalink
Fix Behat tests which broke on Moodle 4.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Oct 23, 2023
1 parent db22808 commit 1a59dce
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes

### Unreleased

* 2023-10-23 - Fix Behat tests which broke on Moodle 4.3.
* 2023-10-20 - Prepare compatibility for Moodle 4.3.

### v4.2-r1
Expand Down
8 changes: 4 additions & 4 deletions tests/behat/local_bulkenrol_groups.feature
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Feature: Using the local_bulkenrol plugin for group management
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
# Group 1
Expand Down Expand Up @@ -80,7 +80,7 @@ Feature: Using the local_bulkenrol plugin for group management
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
# Group 1
Expand Down Expand Up @@ -119,7 +119,7 @@ Feature: Using the local_bulkenrol plugin for group management
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
# Group 1
Expand Down Expand Up @@ -149,7 +149,7 @@ Feature: Using the local_bulkenrol plugin for group management
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
# Group 1
Expand Down
6 changes: 3 additions & 3 deletions tests/behat/local_bulkenrol_navigation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ Feature: Using the local_bulkenrol plugin
| local/bulkenrol:enrolusers | Allow |
And I log out

Scenario Outline: Access the bulk enrolment page via the participants page jump menu
Scenario Outline: Access the bulk enrolment page via the participants page tertiary menu
Given the following config values are set as admin:
| config | value | plugin |
| navigation | <navigation> | local_bulkenrol |
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
Then I should see "User bulk enrolment" in the "#region-main h2" "css_element"

Examples:
| navigation |
| navpart |
| navboth |

Scenario Outline: Access the bulk enrolment page via the participants page jump menu
Scenario Outline: Access the bulk enrolment page via the course page tertiary menu
Given the following config values are set as admin:
| config | value | plugin |
| navigation | <navigation> | local_bulkenrol |
Expand Down
16 changes: 8 additions & 8 deletions tests/behat/local_bulkenrol_users.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Feature: Using the local_bulkenrol plugin for user enrolments
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
[email protected]
Expand Down Expand Up @@ -66,7 +66,7 @@ Feature: Using the local_bulkenrol plugin for user enrolments
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
[email protected]
Expand Down Expand Up @@ -100,7 +100,7 @@ Feature: Using the local_bulkenrol plugin for user enrolments
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
[email protected]
Expand Down Expand Up @@ -131,7 +131,7 @@ Feature: Using the local_bulkenrol plugin for user enrolments
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
[email protected]
Expand Down Expand Up @@ -166,7 +166,7 @@ Feature: Using the local_bulkenrol plugin for user enrolments
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
[email protected]
Expand All @@ -186,7 +186,7 @@ Feature: Using the local_bulkenrol plugin for user enrolments
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
[email protected]
Expand All @@ -198,7 +198,7 @@ Feature: Using the local_bulkenrol plugin for user enrolments
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
foo
Expand All @@ -213,7 +213,7 @@ Feature: Using the local_bulkenrol plugin for user enrolments
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I select "Participants" from secondary navigation
And I select "User bulk enrolment" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "User bulk enrolment"
And I set the field "List of e-mail addresses" to multiline:
"""
[email protected]
Expand Down

0 comments on commit 1a59dce

Please sign in to comment.