e2e-test: avoid page reload between text search attempts

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-08-27 17:30:54 +02:00
parent 584cb2b44e
commit 00d2212b0d
-1
View File
@@ -165,7 +165,6 @@ export async function waitForPageWithText(
} catch (error) {
findTextAttempts++;
if (findTextAttempts <= maxFindTextAttempts) {
await browser.visit(path);
await new Promise(resolve => setTimeout(resolve, intervalMs));
continue;
} else {