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

Function getBrowserBodyText

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

Source from the content-addressed store, hash-verified

1268}
1269
1270export function getBrowserBodyText(browser: Playwright) {
1271 return browser.eval<string>(
1272 'document.getElementsByTagName("body")[0].innerText'
1273 )
1274}
1275
1276export function normalizeRegEx(src: string) {
1277 return new RegExp(src).source.replace(/\^\//g, '^\\/')

Callers 12

index.test.tsFile · 0.90
index.test.tsFile · 0.90
runTestsFunction · 0.90
index.test.tsFile · 0.90
runBasicHmrTestFunction · 0.90
runErrorRecoveryHmrTestFunction · 0.90
checkInjectedFunction · 0.90
index.test.tsFile · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90

Calls 1

evalMethod · 0.80

Tested by 3

runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72