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

Function goFromAnotherToHome

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

Source from the content-addressed store, hash-verified

49
50 // go to /
51 async function goFromAnotherToHome() {
52 await browser.eval('window.didTransition = 1')
53 await browser.elementByCss('#home').click()
54 await browser.waitForElementByCss('#another')
55 text = await browser.elementByCss('p').text()
56 expect(text).toMatch(/hello.*?world/)
57 expect(await browser.eval('window.didTransition')).toBe(1)
58 }
59 await goFromAnotherToHome()
60
61 // Client-side SSG data caching test

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