Skip to content

Commit

Permalink
fix: Change how text is found in 2fa test
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisblackburn committed Sep 9, 2024
1 parent cf2bdf4 commit d8ba120
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/2fa.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ test('Users can add 2FA to their account and use it when logging in', async ({

await expect(page).toHaveURL(`dashboard/settings/profile/two-factor`)

// eslint-disable-next-line no-warning-comments
// FIXME: For some reason this assertion fails
// await expect(main).toHaveText(/You have enabled two-factor authentication./i)
await expect(
page.getByText(/You have enabled two-factor authentication./i),
).toBeVisible()
await expect(main.getByRole('link', { name: /disable 2fa/i })).toBeVisible()

await page.getByRole('link', { name: user.name ?? user.username }).click()
Expand Down

0 comments on commit d8ba120

Please sign in to comment.