Skip to content

[Behat] IBX-10943: Added coverage for wrong old pass validation#1843

Open
juskora wants to merge 3 commits into4.6from
IBX-10943-behat-old-password-verification
Open

[Behat] IBX-10943: Added coverage for wrong old pass validation#1843
juskora wants to merge 3 commits into4.6from
IBX-10943-behat-old-password-verification

Conversation

@juskora
Copy link
Contributor

@juskora juskora commented Mar 2, 2026

🎫 Issue IBX-10943

Description:

For QA:

Documentation:

@juskora juskora changed the title IBX-10943: Added coverage for wrong old pass validation [Behat] IBX-10943: Added coverage for wrong old pass validation Mar 2, 2026
@juskora juskora marked this pull request as draft March 2, 2026 14:53
@juskora juskora force-pushed the IBX-10943-behat-old-password-verification branch from 1e0e114 to ae57cd0 Compare March 2, 2026 14:53
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2026

Copy link
Contributor

@tomaszszopinski tomaszszopinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 (just some nitpicks from me).

When I go to user settings
And I switch to "Account settings" tab in User settings
And I click on the change password button
And I change password from "Passw0rd-42" to "Passw0rd-44"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
And I change password from "Passw0rd-42" to "Passw0rd-44"
When I change password from "Passw0rd-42" to "Passw0rd-44"

And I click on the change password button
And I change password from "Passw0rd-42" to "Passw0rd-44"
And I perform the "Save and close" action
Then "Current password" field validates with error message "Current password is incorrect." No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to add newline

*/
public function iValidateOldPassword(string $expectedMessage): void
{
$this->changePasswordPage->verifyValidationMessage($expectedMessage);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe:

Suggested change
$this->changePasswordPage->verifyValidationMessage($expectedMessage);
$this->changePasswordPage->verifyPasswordValidationMessage($expectedMessage);


public function verifyValidationMessage(string $expectedMessage): void
{
$this->getHTMLPage()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$this->getHTMLPage()
$this->getHTMLPage()->setTimeout(3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants