mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
26 lines
658 B
TypeScript
26 lines
658 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
import { waitFor } from 'next-test-utils'
|
|
import { createSandbox, waitForHydration } from 'development-sandbox'
|
|
|
|
describe('basic app-dir tests', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should reload app pages without error', async () => {
|
|
await using sandbox = await createSandbox(next, undefined, '/')
|
|
const { session, browser } = sandbox
|
|
await session.assertNoRedbox()
|
|
|
|
browser.refresh()
|
|
|
|
await waitFor(750)
|
|
await waitForHydration(browser)
|
|
|
|
for (let i = 0; i < 15; i++) {
|
|
await session.assertNoRedbox()
|
|
await waitFor(1000)
|
|
}
|
|
})
|
|
})
|