File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1- import { test } from '@playwright/test' ;
1+ import { expect , test } from '@playwright/test' ;
22
33import { hash } from '../models/helpers' ;
44import { appConfigs } from '../presets' ;
@@ -31,6 +31,10 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withSessionTasksResetPassword
3131 await u . page . getByRole ( 'textbox' , { name : 'code' } ) . click ( ) ;
3232 await u . page . keyboard . type ( '424242' , { delay : 100 } ) ;
3333
34+ await expect ( u . page . getByText ( / p a s s w o r d c o m p r o m i s e d / i) ) . toBeVisible ( ) ;
35+
36+ await u . po . signIn . getAltMethodsEmailCodeButton ( ) . click ( ) ;
37+
3438 // Redirects back to tasks when accessing protected route by `auth.protect`
3539 await u . page . goToRelative ( '/page-protected' ) ;
3640
@@ -75,6 +79,10 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withSessionTasksResetPassword
7579
7680 await u . page . getByRole ( 'textbox' , { name : 'code' } ) . fill ( '424242' ) ;
7781
82+ await expect ( u . page . getByText ( / p a s s w o r d c o m p r o m i s e d / i) ) . toBeVisible ( ) ;
83+ await u . po . signIn . getAltMethodsEmailCodeButton ( ) . click ( ) ;
84+ await u . page . getByRole ( 'textbox' , { name : 'code' } ) . fill ( '424242' ) ;
85+
7886 await u . po . expect . toBeSignedIn ( ) ;
7987
8088 // Redirects back to tasks when accessing protected route by `auth.protect`
You can’t perform that action at this time.
0 commit comments