Skip to content

Commit a0ea160

Browse files
committed
ensure js is loaded before testing components that depend on it
radix checkbox requires js to work
1 parent d7820bb commit a0ea160

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/e2e/onboarding.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ test('onboarding with link', async ({ page, getOnboardingData }) => {
8989

9090
await page.getByLabel(/^confirm password/i).fill(onboardingData.password)
9191

92+
await page.waitForLoadState('networkidle') // ensure js is fully loaded.
93+
9294
await page.getByLabel(/terms/i).check()
9395

9496
await page.getByLabel(/remember me/i).check()
@@ -167,6 +169,7 @@ test('completes onboarding after GitHub OAuth given valid user details', async (
167169
name: /create an account/i,
168170
})
169171

172+
await page.waitForLoadState('networkidle') // ensure js is fully loaded.
170173
await page
171174
.getByLabel(/do you agree to our terms of service and privacy policy/i)
172175
.check()
@@ -307,6 +310,8 @@ test('shows help texts on entering invalid details on onboarding page after GitH
307310
await expect(page).toHaveURL(/\/onboarding\/github/)
308311

309312
// we are all set up and ...
313+
314+
await page.waitForLoadState('networkidle') // ensure js is fully loaded.
310315
await page
311316
.getByLabel(/do you agree to our terms of service and privacy policy/i)
312317
.check()

0 commit comments

Comments
 (0)