(elem: ElementFinder)
| 6 | |
| 7 | // Helpers |
| 8 | const click = async (elem: ElementFinder) => { |
| 9 | // Waiting for the element to be clickable, makes the tests less flaky. |
| 10 | await browser.wait(EC.elementToBeClickable(elem), 5000); |
| 11 | await elem.click(); |
| 12 | }; |
| 13 | const waitForText = async (elem: ElementFinder) => { |
| 14 | // Waiting for the element to have some text, makes the tests less flaky. |
| 15 | await browser.wait(async () => /\S/.test(await elem.getText()), 5000); |
no test coverage detected