mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
x-ref: https://github.com/vercel/next.js/actions/runs/18146430374/job/51651546603 x-ref: https://github.com/vercel/next.js/actions/runs/18146430374/job/51648845664
26 lines
981 B
TypeScript
26 lines
981 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('parallel-routes-and-interception-nested-dynamic-routes', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
// TODO: re-enable when resolved related thread
|
|
// https://vercel.slack.com/archives/C07UCHRBWGK/p1759165345308879
|
|
skipDeployment: true,
|
|
})
|
|
|
|
it('should intercept the route for nested dynamic routes', async () => {
|
|
const browser = await next.browser('/1/1')
|
|
expect(await browser.elementByCss('h1').text()).toBe('foo id 1, bar id 1')
|
|
await browser.elementByCss('a').click()
|
|
|
|
// Should intercept the route.
|
|
expect(await browser.waitForElementByCss('p').text()).toBe('intercepted!')
|
|
// Should preserve the previous component.
|
|
expect(await browser.elementByCss('h1').text()).toBe('foo id 1, bar id 1')
|
|
|
|
await browser.refresh()
|
|
// Should display the correct /baz_id/1 content.
|
|
expect(await browser.waitForElementByCss('p').text()).toBe('baz_id/1')
|
|
})
|
|
})
|