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

Function didNotReload

test/integration/repeated-slashes/test/index.test.ts:40–54  ·  view source on GitHub ↗
(browser)

Source from the content-addressed store, hash-verified

38 }
39
40 const didNotReload = async (browser) => {
41 for (let i = 0; i < 4; i++) {
42 await waitFor(500)
43
44 const result = await browser.eval('window.errorLoad')
45
46 if (result !== true) {
47 throw new Error(
48 `did not find window.errorLoad, current url: ${await browser.url()}`
49 )
50 }
51
52 if (isDev) break
53 }
54 }
55
56 if (!isExport) {
57 it('should normalize repeated slashes in redirects correctly', async () => {

Callers 1

runTestsFunction · 0.85

Calls 3

waitForFunction · 0.90
evalMethod · 0.80
urlMethod · 0.65

Tested by

no test coverage detected