(browser)
| 29 | let app |
| 30 | |
| 31 | async function getImageUrls(browser) { |
| 32 | return await Promise.all( |
| 33 | (await browser.elementsByCss('img')).map(async (link) => |
| 34 | new URL( |
| 35 | await link.getAttribute('src'), |
| 36 | `http://localhost:${appPort}` |
| 37 | ).toString() |
| 38 | ) |
| 39 | ) |
| 40 | } |
| 41 | async function getComputed(browser, id, prop) { |
| 42 | const val = await browser.eval(`document.getElementById('${id}').${prop}`) |
| 43 | if (typeof val === 'number') { |
no test coverage detected