Include waitForNavigation in the test

[MAILPOET-5539]
This commit is contained in:
Veljko
2023-08-18 14:36:57 +02:00
committed by Pavel Dohnal
parent 69c91042a8
commit f3d4461e8b

View File

@ -51,14 +51,12 @@ export async function formsAdding() {
await waitAndClick(page, '[data-automation-id="create_new_form"]');
// Choose the form template
await Promise.all([
page.waitForNavigation(),
page
.locator('[data-automation-id="select_template_template_1_popup"]')
.click(),
]);
await page.waitForLoadState('networkidle');
await page.waitForNavigation();
await waitAndClick(
page,
'[data-automation-id="select_template_template_1_popup"]',
);
await page.waitForNavigation();
// Try to close the tutorial video popup
try {