MCPcopy
hub / github.com/vercel/next.js / getImageUrls

Function getImageUrls

test/integration/next-image-new/app-dir/test/index.test.ts:31–40  ·  view source on GitHub ↗
(browser)

Source from the content-addressed store, hash-verified

29let app
30
31async 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}
41async function getComputed(browser, id, prop) {
42 const val = await browser.eval(`document.getElementById('${id}').${prop}`)
43 if (typeof val === 'number') {

Callers 1

runTestsFunction · 0.70

Calls 5

allMethod · 0.80
elementsByCssMethod · 0.80
getAttributeMethod · 0.80
mapMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected