* @param {string} selector * @param {{ timeout: number }} options
(selector, options)
| 30 | * @param {{ timeout: number }} options |
| 31 | */ |
| 32 | async function clicknav(selector, options) { |
| 33 | const element = page.locator(selector); |
| 34 | if (javaScriptEnabled) { |
| 35 | await Promise.all([page.waitForNavigation(options), element.click()]); |
| 36 | } else { |
| 37 | await element.click(); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | await use(clicknav); |
| 42 | }, |
no outgoing calls
no test coverage detected