diff options
-rw-r--r-- | core/templates/publicshareauth.php | 2 | ||||
-rw-r--r-- | tests/acceptance/features/bootstrap/PublicShareContext.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/publicshareauth.php b/core/templates/publicshareauth.php index 74303ce02ea..46e43b3c218 100644 --- a/core/templates/publicshareauth.php +++ b/core/templates/publicshareauth.php @@ -17,7 +17,7 @@ <div class="warning-info"><?php p($l->t('This share is password-protected')); ?></div> <?php endif; ?> <?php if (isset($_['wrongpw'])): ?> - <div class="warning"><?php p($l->t('The password is wrong. Try again.')); ?></div> + <div class="warning wrongPasswordMsg"><?php p($l->t('The password is wrong or expired. Please try again or request a new one.')); ?></div> <?php endif; ?> <p> <label for="password" class="infield"><?php p($l->t('Password')); ?></label> diff --git a/tests/acceptance/features/bootstrap/PublicShareContext.php b/tests/acceptance/features/bootstrap/PublicShareContext.php index 6e4957c9ce3..d31d6541335 100644 --- a/tests/acceptance/features/bootstrap/PublicShareContext.php +++ b/tests/acceptance/features/bootstrap/PublicShareContext.php @@ -48,7 +48,7 @@ class PublicShareContext implements Context, ActorAwareInterface { * @return Locator */ public static function wrongPasswordMessage() { - return Locator::forThe()->xpath("//*[@class = 'warning' and normalize-space() = 'The password is wrong. Try again.']")-> + return Locator::forThe()->css(".warning .wrongPasswordMsg")-> describedAs("Wrong password message in Authenticate page"); } |