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

Function goFromHomeToAnother

test/integration/prerender-export/test/index.test.ts:40–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39 // go to /another
40 async function goFromHomeToAnother() {
41 await browser.eval('window.beforeAnother = true')
42 await browser.elementByCss('#another').click()
43 await browser.waitForElementByCss('#home')
44 text = await browser.elementByCss('p').text()
45 expect(await browser.eval('window.beforeAnother')).toBe(true)
46 expect(text).toMatch(/hello.*?world/)
47 }
48 await goFromHomeToAnother()
49
50 // go to /

Callers 1

navigateTestFunction · 0.70

Calls 6

evalMethod · 0.80
clickMethod · 0.80
elementByCssMethod · 0.80
waitForElementByCssMethod · 0.80
textMethod · 0.65
expectFunction · 0.50

Tested by

no test coverage detected