From de581bc7404f6cd72dfb3934c60dd45b78c5f905 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Sun, 12 Mar 2023 09:51:02 +0100 Subject: [PATCH] Tests: Fix a Behat test which broke after Moodle core upstream changes --- CHANGES.md | 1 + tests/behat/auth_ldap_syncplus.feature | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 85aacac..4168256 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/tests/behat/auth_ldap_syncplus.feature b/tests/behat/auth_ldap_syncplus.feature index ee91b8d..4514e98 100644 --- a/tests/behat/auth_ldap_syncplus.feature +++ b/tests/behat/auth_ldap_syncplus.feature @@ -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" @@ -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 "user01@example.com" Scenario: First login via email should be possible without an existing Moodle account @@ -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 @@ -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 "user01@example.com"