()
| 312 | }) |
| 313 | |
| 314 | async function hasAnotherScript() { |
| 315 | const scripts = await browser.elementsByCss( |
| 316 | // Mouse hover is a high-priority fetch |
| 317 | 'script:not([async])' |
| 318 | ) |
| 319 | let scriptFound = false |
| 320 | for (const aScript of scripts) { |
| 321 | const href = await aScript.getAttribute('src') |
| 322 | if (href.includes(chunkAnother)) { |
| 323 | scriptFound = true |
| 324 | break |
| 325 | } |
| 326 | } |
| 327 | return scriptFound |
| 328 | } |
| 329 | |
| 330 | expect(await hasAnotherScript()).toBe(false) |
| 331 | await browser.elementByCss('#link-another').moveTo() |
no test coverage detected