@@ -156,7 +156,7 @@ test('completes onboarding after GitHub OAuth given valid user details', async (
156
156
await page . getByRole ( 'button' , { name : / s i g n u p w i t h g i t h u b / i } ) . click ( )
157
157
158
158
await expect ( page ) . toHaveURL ( / \/ o n b o a r d i n g \/ g i t h u b / )
159
- expect (
159
+ await expect (
160
160
page . getByText ( new RegExp ( `welcome aboard ${ ghUser . primaryEmail } ` , 'i' ) ) ,
161
161
) . toBeVisible ( )
162
162
@@ -222,7 +222,7 @@ test('logs user in after GitHub OAuth if they are already registered', async ({
222
222
await page . getByRole ( 'button' , { name : / s i g n u p w i t h g i t h u b / i } ) . click ( )
223
223
224
224
await expect ( page ) . toHaveURL ( `/` )
225
- expect (
225
+ await expect (
226
226
page . getByText (
227
227
new RegExp (
228
228
`your "${ ghUser ! . profile . login } " github account has been connected` ,
@@ -247,7 +247,7 @@ test('shows help texts on entering invalid details on onboarding page after GitH
247
247
await page . getByRole ( 'button' , { name : / s i g n u p w i t h g i t h u b / i } ) . click ( )
248
248
249
249
await expect ( page ) . toHaveURL ( / \/ o n b o a r d i n g \/ g i t h u b / )
250
- expect (
250
+ await expect (
251
251
page . getByText ( new RegExp ( `welcome aboard ${ ghUser . primaryEmail } ` , 'i' ) ) ,
252
252
) . toBeVisible ( )
253
253
@@ -257,15 +257,15 @@ test('shows help texts on entering invalid details on onboarding page after GitH
257
257
const createAccountButton = page . getByRole ( 'button' , {
258
258
name : / c r e a t e a n a c c o u n t / i,
259
259
} )
260
- expect ( createAccountButton . getByRole ( 'status' ) ) . not . toBeVisible ( )
261
- expect ( createAccountButton . getByText ( 'error' ) ) . not . toBeAttached ( )
260
+ await expect ( createAccountButton . getByRole ( 'status' ) ) . not . toBeVisible ( )
261
+ await expect ( createAccountButton . getByText ( 'error' ) ) . not . toBeAttached ( )
262
262
263
263
// invalid chars in username
264
264
await usernameInput . fill ( 'U$er_name' ) // $ is invalid char, see app/utils/user-validation.ts.
265
265
await createAccountButton . click ( )
266
266
267
267
await expect ( createAccountButton . getByRole ( 'status' ) ) . toBeVisible ( )
268
- expect ( createAccountButton . getByText ( 'error' ) ) . toBeAttached ( )
268
+ await expect ( createAccountButton . getByText ( 'error' ) ) . toBeAttached ( )
269
269
await expect (
270
270
page . getByText (
271
271
/ u s e r n a m e c a n o n l y i n c l u d e l e t t e r s , n u m b e r s , a n d u n d e r s c o r e s / i,
0 commit comments