Skip to content

Commit 2523664

Browse files
committed
frontend/tests: fix test registration
1 parent cd44a33 commit 2523664

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

frontend/pre-test/registration.spec.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)