@@ -156,7 +156,7 @@ test('completes onboarding after GitHub OAuth given valid user details', async (
156156 await page . getByRole ( 'button' , { name : / s i g n u p w i t h g i t h u b / i } ) . click ( )
157157
158158 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 (
160160 page . getByText ( new RegExp ( `welcome aboard ${ ghUser . primaryEmail } ` , 'i' ) ) ,
161161 ) . toBeVisible ( )
162162
@@ -222,7 +222,7 @@ test('logs user in after GitHub OAuth if they are already registered', async ({
222222 await page . getByRole ( 'button' , { name : / s i g n u p w i t h g i t h u b / i } ) . click ( )
223223
224224 await expect ( page ) . toHaveURL ( `/` )
225- expect (
225+ await expect (
226226 page . getByText (
227227 new RegExp (
228228 `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
247247 await page . getByRole ( 'button' , { name : / s i g n u p w i t h g i t h u b / i } ) . click ( )
248248
249249 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 (
251251 page . getByText ( new RegExp ( `welcome aboard ${ ghUser . primaryEmail } ` , 'i' ) ) ,
252252 ) . toBeVisible ( )
253253
@@ -257,15 +257,15 @@ test('shows help texts on entering invalid details on onboarding page after GitH
257257 const createAccountButton = page . getByRole ( 'button' , {
258258 name : / c r e a t e a n a c c o u n t / i,
259259 } )
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 ( )
262262
263263 // invalid chars in username
264264 await usernameInput . fill ( 'U$er_name' ) // $ is invalid char, see app/utils/user-validation.ts.
265265 await createAccountButton . click ( )
266266
267267 await expect ( createAccountButton . getByRole ( 'status' ) ) . toBeVisible ( )
268- expect ( createAccountButton . getByText ( 'error' ) ) . toBeAttached ( )
268+ await expect ( createAccountButton . getByText ( 'error' ) ) . toBeAttached ( )
269269 await expect (
270270 page . getByText (
271271 / 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