diff options
Diffstat (limited to 'tests/acceptance/features/bootstrap/LoginPageContext.php')
-rw-r--r-- | tests/acceptance/features/bootstrap/LoginPageContext.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/acceptance/features/bootstrap/LoginPageContext.php b/tests/acceptance/features/bootstrap/LoginPageContext.php index 3fb06abb235..01ad34ba149 100644 --- a/tests/acceptance/features/bootstrap/LoginPageContext.php +++ b/tests/acceptance/features/bootstrap/LoginPageContext.php @@ -54,7 +54,7 @@ class LoginPageContext implements Context, ActorAwareInterface { } public static function wrongPasswordMessage(): Locator { - return Locator::forThe()->xpath("//*[@class = 'warning wrongPasswordMsg' and normalize-space() = 'Wrong username or password.']")-> + return Locator::forThe()->xpath("//*[@class = 'input-field__helper-text-message input-field__helper-text-message--error' and normalize-space() = 'Wrong username or password.']")-> describedAs("Wrong password message in Login page"); } @@ -62,7 +62,7 @@ class LoginPageContext implements Context, ActorAwareInterface { * @return Locator */ public static function userDisabledMessage() { - return Locator::forThe()->xpath("//*[@class = 'warning userDisabledMsg' and normalize-space() = 'User disabled']")-> + return Locator::forThe()->xpath("//*[@class = 'input-field__helper-text-message input-field__helper-text-message--error' and normalize-space() = 'User disabled']")-> describedAs('User disabled message on login page'); } |