Skip to content

Commit 37d4638

Browse files
committed
remove expects for pending state
1 parent 2212cd7 commit 37d4638

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tests/e2e/onboarding.test.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ test('onboarding with link', async ({ page, getOnboardingData }) => {
6060
await emailTextbox.fill(onboardingData.email)
6161

6262
await page.getByRole('button', { name: /submit/i }).click()
63-
await expect(
64-
page.getByRole('button', { name: /submit/i, disabled: true }),
65-
).toBeVisible()
6663
await expect(page.getByText(/check your email/i)).toBeVisible()
6764

6865
const email = await readEmail(onboardingData.email)
@@ -120,9 +117,6 @@ test('onboarding with a short code', async ({ page, getOnboardingData }) => {
120117
await emailTextbox.fill(onboardingData.email)
121118

122119
await page.getByRole('button', { name: /submit/i }).click()
123-
await expect(
124-
page.getByRole('button', { name: /submit/i, disabled: true }),
125-
).toBeVisible()
126120
await expect(page.getByText(/check your email/i)).toBeVisible()
127121

128122
const email = await readEmail(onboardingData.email)
@@ -350,9 +344,6 @@ test('reset password with a link', async ({ page, insertNewUser }) => {
350344
).toBeVisible()
351345
await page.getByRole('textbox', { name: /username/i }).fill(user.username)
352346
await page.getByRole('button', { name: /recover password/i }).click()
353-
await expect(
354-
page.getByRole('button', { name: /recover password/i, disabled: true }),
355-
).toBeVisible()
356347
await expect(page.getByText(/check your email/i)).toBeVisible()
357348

358349
const email = await readEmail(user.email)
@@ -377,9 +368,6 @@ test('reset password with a link', async ({ page, insertNewUser }) => {
377368
await page.getByLabel(/^confirm password$/i).fill(newPassword)
378369

379370
await page.getByRole('button', { name: /reset password/i }).click()
380-
await expect(
381-
page.getByRole('button', { name: /reset password/i, disabled: true }),
382-
).toBeVisible()
383371

384372
await expect(page).toHaveURL('/login')
385373
await page.getByRole('textbox', { name: /username/i }).fill(user.username)
@@ -408,9 +396,6 @@ test('reset password with a short code', async ({ page, insertNewUser }) => {
408396
).toBeVisible()
409397
await page.getByRole('textbox', { name: /username/i }).fill(user.username)
410398
await page.getByRole('button', { name: /recover password/i }).click()
411-
await expect(
412-
page.getByRole('button', { name: /recover password/i, disabled: true }),
413-
).toBeVisible()
414399
await expect(page.getByText(/check your email/i)).toBeVisible()
415400

416401
const email = await readEmail(user.email)

0 commit comments

Comments
 (0)