(browser, id)
| 63 | } |
| 64 | |
| 65 | async function getSrc(browser, id) { |
| 66 | const src = await browser.elementById(id).getAttribute('src') |
| 67 | if (src) { |
| 68 | const url = new URL(src, `http://localhost:${appPort}`) |
| 69 | return url.href.slice(url.origin.length) |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | function getRatio(width, height) { |
| 74 | return height / width |
no test coverage detected