flaky tests
This commit is contained in:
parent
f3b310db5b
commit
b4ab7f2a0d
|
@ -168,6 +168,7 @@ async function tapAndWaitFor(
|
|||
await elementToTap.tap();
|
||||
}
|
||||
await waitFor(elementToWaitFor).toBeVisible().withTimeout(1000);
|
||||
await sleep(300); // Wait for animation
|
||||
} catch (e) {
|
||||
if (timeout <= 0) {
|
||||
throw e;
|
||||
|
|
Loading…
Reference in New Issue