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 @@ -15,7 +15,15 @@ test('register', async ({ page }) => {
1515 await page . getByText ( 'I have read, understood and I am accepting the privacy notice.' ) . click ( ) ;
1616 await page . getByText ( 'I have read, understood and I am accepting the terms and conditions.' ) . click ( ) ;
1717 await page . getByRole ( 'button' , { name : 'Register' } ) . click ( ) ;
18- await page . getByText ( 'Close' ) . click ( ) ;
18+
19+ // Wait for the recovery modal to appear and complete the recovery data flow
20+ await page . locator ( '.modal' ) . getByRole ( 'button' , { name : 'Save' } ) . click ( ) ;
21+ await page . locator ( '.modal' ) . getByRole ( 'checkbox' , { name : 'I have downloaded and safely stored the recovery file' } ) . check ( ) ;
22+ await page . locator ( '.modal-footer' ) . getByRole ( 'button' , { name : 'Close' } ) . click ( ) ;
23+
24+ if ( ! mailiskClient ) {
25+ throw new Error ( 'Mailisk client is not configured' ) ;
26+ }
1927 const inbox = await mailiskClient . searchInbox ( mailiskNameSpace , { to_addr_prefix : testUser1 , from_timestamp : ( Date . now ( ) / 1000 ) - 5 } ) ;
2028
2129 if ( ! inbox . data || inbox . data . length === 0 ) {
You can’t perform that action at this time.
0 commit comments