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"]'); await waitAndClick(page, '[data-automation-id="create_new_form"]');
// Choose the form template // Choose the form template
await Promise.all([ await page.waitForNavigation();
page.waitForNavigation(), await waitAndClick(
page page,
.locator('[data-automation-id="select_template_template_1_popup"]') '[data-automation-id="select_template_template_1_popup"]',
.click(), );
]); await page.waitForNavigation();
await page.waitForLoadState('networkidle');
// Try to close the tutorial video popup // Try to close the tutorial video popup
try { try {