0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fixed 2fa re-send browser test

ref 9fa0c24be9

- updated to match current button text
This commit is contained in:
Kevin Ansfield 2024-10-25 17:14:50 +01:00
parent 9fa0c24be9
commit 9dff9cc364

View file

@ -64,7 +64,7 @@ test.describe('2FA', () => {
await page.getByRole('button', {name: 'Sign in'}).click();
await page.getByRole('button', {name: 'Resend'}).click();
await expect(page.locator('.forgotten-link')).toHaveText(/Resend again in [0-9]+s/);
await expect(page.locator('.forgotten-link')).toHaveText(/Sent/);
const token = await verificationToken.getToken();