Skip to content

Commit

Permalink
Tests: Fix a Behat test which broke after Moodle core upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Mar 12, 2023
1 parent d32a389 commit de581bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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-03-12 - Tests: Fix a Behat test which broke after Moodle core upstream changes
* 2023-03-11 - Make codechecker happy again
* 2023-03-11 - Tests: Change the branch which is checked out to start ldap
* 2022-12-27 - Add some automated tests on Github actions, solves #32
Expand Down
8 changes: 4 additions & 4 deletions tests/behat/auth_ldap_syncplus.feature
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Feature: Checking that all LDAP (Sync Plus) specific settings are working
| Username | user01 |
| Choose an authentication method | ldap_syncplus |
| First name | Foo |
| Surname | Bar |
| Last name | Bar |
| Email address | foo@bar.com |
| New password | Hello!123 |
And I press "Create user"
Expand All @@ -196,7 +196,7 @@ Feature: Checking that all LDAP (Sync Plus) specific settings are working
And I click on "Edit" "link" in the "User 01" "table_row"
And the field "Username" matches value "user01"
And the field "First name" matches value "User"
And the field "Surname" matches value "01"
And the field "Last name" matches value "01"
And the field "Email address" matches value "[email protected]"

Scenario: First login via email should be possible without an existing Moodle account
Expand Down Expand Up @@ -230,7 +230,7 @@ Feature: Checking that all LDAP (Sync Plus) specific settings are working
And I click on "Edit" "link" in the "User 01" "table_row"
And I set the following fields to these values:
| First name | Foo |
| Surname | Bar |
| Last name | Bar |
| Email address | foo@bar.com |
And I press "Update profile"
And I navigate to "Users > Accounts > Browse list of users" in site administration
Expand All @@ -243,5 +243,5 @@ Feature: Checking that all LDAP (Sync Plus) specific settings are working
And I click on "Edit" "link" in the "User 01" "table_row"
And the field "Username" matches value "user01"
And the field "First name" matches value "User"
And the field "Surname" matches value "01"
And the field "Last name" matches value "01"
And the field "Email address" matches value "[email protected]"

0 comments on commit de581bc

Please sign in to comment.