(browser, id)
| 48 | } |
| 49 | |
| 50 | async function getSrc(browser, id) { |
| 51 | const src = await browser.elementById(id).getAttribute('src') |
| 52 | if (src) { |
| 53 | const url = new URL(src, `http://localhost:${appPort}`) |
| 54 | return url.href.slice(url.origin.length) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | function getRatio(width, height) { |
| 59 | return height / width |
no test coverage detected