Make the sentence applies to both UI and API

This commit is contained in:
Francis Hilaire 2023-09-29 10:42:57 +02:00
parent 7159d33293
commit 8763404483
No known key found for this signature in database
GPG key ID: 3392F830BF33D421
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ Feature: Resetting a password
@ui @email @api
Scenario: Trying to change my account password with an expired token I received
Given I have already received a resetting password email
But I waited too long, and the link expired
But I waited too long, and the token expired
When I follow link on my email to reset my password
And I specify my new password as "newp@ssw0rd"
And I confirm my new password as "newp@ssw0rd"

View file

@ -157,9 +157,9 @@ final class UserContext implements Context
}
/**
* @Given /^(I) waited too long, and the link expired$/
* @Given /^(I) waited too long, and the token expired$/
*/
public function iWaitedTooMuchTimeToResetMyPassword(UserInterface $user): void
public function iWaitedTooLongAndTheTokenExpired(UserInterface $user): void
{
/** @var \DateTime $passwordRequestedAt */
$passwordRequestedAt = $user->getPasswordRequestedAt();