mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
20 lines
607 B
TypeScript
20 lines
607 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('app dir - navigation with Suspense in nested layout', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('resolves data after client navigation to a nested layout with Suspense', async () => {
|
|
const browser = await next.browser('/nested')
|
|
|
|
await browser.waitForElementByCss('[data-testid="nested-resolved"]')
|
|
|
|
await browser.waitForElementByCss('a[href="/"]').click()
|
|
|
|
await browser.waitForElementByCss('a[href="/nested"]').click()
|
|
|
|
await browser.waitForElementByCss('[data-testid="nested-resolved"]')
|
|
})
|
|
})
|