From 137ece3bed1cbcd981a7af8b43cd3aa6e414c7c3 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 18 Oct 2024 11:08:05 +1300 Subject: [PATCH] MNT Update behat tests --- tests/behat/features/lostpassword.feature | 6 +++--- tests/behat/features/manage-users.feature | 4 ++-- tests/behat/features/profile.feature | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/behat/features/lostpassword.feature b/tests/behat/features/lostpassword.feature index b3402b670..262277430 100644 --- a/tests/behat/features/lostpassword.feature +++ b/tests/behat/features/lostpassword.feature @@ -16,7 +16,7 @@ Feature: Lost Password And there should be an email to "admin@example.org" titled "Your password reset link" When I click on the "password reset link" link in the email to "admin@example.org" Then I should see "Please enter a new password" - When I fill in "NEWsecret!@#*&^" for "New Password" - And I fill in "NEWsecret!@#*&^" for "Confirm New Password" + When I fill in "the-quick-brown-fox" for "New Password" + And I fill in "the-quick-brown-fox" for "Confirm New Password" And I press the "Change Password" button - Then the password for "admin@example.org" should be "NEWsecret!@#*&^" + Then the password for "admin@example.org" should be "the-quick-brown-fox" diff --git a/tests/behat/features/manage-users.feature b/tests/behat/features/manage-users.feature index 59c0eca20..51a79b44c 100644 --- a/tests/behat/features/manage-users.feature +++ b/tests/behat/features/manage-users.feature @@ -83,8 +83,8 @@ Feature: Manage users | First Name | John | | Surname | Doe | | Email | john.doe@example.org | - | Password | P@ssword#1 | - | Confirm Password | P@ssword#1 | + | Password | the-quick-brown-fox | + | Confirm Password | the-quick-brown-fox | And I press the "Create" button Then I should see a "Saved member" message diff --git a/tests/behat/features/profile.feature b/tests/behat/features/profile.feature index b5a0e0eae..77bc78720 100644 --- a/tests/behat/features/profile.feature +++ b/tests/behat/features/profile.feature @@ -37,8 +37,8 @@ Feature: Manage my own settings Scenario: I can't reset the password without the original Given I follow "Change Password" And I fill in "Current Password" with "idontknow" - And I fill in "New Password" with "NEWsecret!@#*&^" - And I fill in "Confirm Password" with "NEWsecret!@#*&^" + And I fill in "New Password" with "the-quick-brown-fox" + And I fill in "Confirm Password" with "the-quick-brown-fox" And I press the "Save" button Then I should see "The current password you have entered is not correct." @@ -48,16 +48,16 @@ Feature: Manage my own settings And I fill in "New Password" with "a" And I fill in "Confirm Password" with "a" And I press the "Save" button - Then I should see "Password is too short" + Then I should see "The password strength is too low. Please use a stronger password." Scenario: I can change my password Given I follow "Change Password" And I fill in "Current Password" with "secret" - And I fill in "New Password" with "NEWsecret!@#*&^" - And I fill in "Confirm Password" with "NEWsecret!@#*&^" + And I fill in "New Password" with "the-quick-brown-fox" + And I fill in "Confirm Password" with "the-quick-brown-fox" And I press the "Save" button And I am not logged in - When I log in with "joe@example.org" and "NEWsecret!@#*&^" + When I log in with "joe@example.org" and "the-quick-brown-fox" And I go to "admin/myprofile" Then I should see the CMS