mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? Parallel routes and groups were not allowed after a catch-all segment on the turbopack side previously. Closes PACK-2975 Fixes #64600
23 lines
714 B
TypeScript
23 lines
714 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
import { check } from 'next-test-utils'
|
|
|
|
describe('catchall-parallel-routes-group', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should work without throwing any errors about invalid pages', async () => {
|
|
const browser = await next.browser('/')
|
|
|
|
await check(() => browser.elementByCss('body').text(), /Root Page/)
|
|
await browser.elementByCss('[href="/foobar"]').click()
|
|
|
|
// catch all matches page, but also slot with layout and group
|
|
await check(() => browser.elementByCss('body').text(), /Catch-all Page/)
|
|
await check(
|
|
() => browser.elementByCss('body').text(),
|
|
/Catch-all Slot Group Page/
|
|
)
|
|
})
|
|
})
|