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

Function getRedboxHeader

test/lib/next-test-utils.ts:1127–1135  ·  view source on GitHub ↗
(browser: Playwright)

Source from the content-addressed store, hash-verified

1125}
1126
1127export function getRedboxHeader(browser: Playwright): Promise<string | null> {
1128 return browser.eval(() => {
1129 const portal = [].slice
1130 .call(document.querySelectorAll('nextjs-portal'))
1131 .find((p) => p.shadowRoot.querySelector('[data-nextjs-dialog-header]'))
1132 const root = portal?.shadowRoot
1133 return root?.querySelector('[data-nextjs-dialog-header]')?.innerText ?? null
1134 })
1135}
1136
1137export async function getRedboxTotalErrorCount(
1138 browser: Playwright

Callers 15

runTestsFunction · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90
index.test.tsFile · 0.90
showsErrorFunction · 0.90
index.test.tsFile · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90
index.test.tsFile · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90
runErrorRecoveryHmrTestFunction · 0.90

Calls 3

evalMethod · 0.80
callMethod · 0.80
findMethod · 0.45

Tested by 12

runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
showsErrorFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
testDevFunction · 0.72
testDevFunction · 0.72
runTestsFunction · 0.72