Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
98aaf5c6
Commit
98aaf5c6
authored
Apr 03, 2026
by
Jimmy Lai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add failing test for #62656 - dynamic parallel route doesn't match static route
parent
daca04d0
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
87 additions
and
0 deletions
+87
-0
default.tsx
...lel-routes-dynamic-static-match/app/@parallel/default.tsx
+3
-0
page.tsx
...amic-static-match/app/@parallel/test/[testParam]/page.tsx
+8
-0
default.tsx
...-dir/parallel-routes-dynamic-static-match/app/default.tsx
+3
-0
layout.tsx
...p-dir/parallel-routes-dynamic-static-match/app/layout.tsx
+16
-0
page.tsx
...app-dir/parallel-routes-dynamic-static-match/app/page.tsx
+3
-0
page.tsx
...routes-dynamic-static-match/app/test/[testParam]/page.tsx
+8
-0
page.tsx
...llel-routes-dynamic-static-match/app/test/static/page.tsx
+3
-0
next.config.js
...p-dir/parallel-routes-dynamic-static-match/next.config.js
+6
-0
parallel-routes-dynamic-static-match.test.ts
...static-match/parallel-routes-dynamic-static-match.test.ts
+37
-0
No files found.
test/e2e/app-dir/parallel-routes-dynamic-static-match/app/@parallel/default.tsx
0 → 100644
View file @
98aaf5c6
export
default
function
ParallelDefault
()
{
return
<
p
>
Parallel: Default Fallback
</
p
>
}
test/e2e/app-dir/parallel-routes-dynamic-static-match/app/@parallel/test/[testParam]/page.tsx
0 → 100644
View file @
98aaf5c6
export
default
async
function
ParallelTestParamPage
({
params
,
}:
{
params
:
Promise
<
{
testParam
:
string
}
>
})
{
const
{
testParam
}
=
await
params
return
<
p
>
Parallel:
{
testParam
}
</
p
>
}
test/e2e/app-dir/parallel-routes-dynamic-static-match/app/default.tsx
0 → 100644
View file @
98aaf5c6
export
default
function
Default
()
{
return
null
}
test/e2e/app-dir/parallel-routes-dynamic-static-match/app/layout.tsx
0 → 100644
View file @
98aaf5c6
export
default
function
RootLayout
({
children
,
parallel
,
}:
{
children
:
React
.
ReactNode
parallel
:
React
.
ReactNode
})
{
return
(
<
html
>
<
body
>
<
div
id=
"children"
>
{
children
}
</
div
>
<
div
id=
"parallel"
>
{
parallel
}
</
div
>
</
body
>
</
html
>
)
}
test/e2e/app-dir/parallel-routes-dynamic-static-match/app/page.tsx
0 → 100644
View file @
98aaf5c6
export
default
function
Home
()
{
return
<
p
>
Home
</
p
>
}
test/e2e/app-dir/parallel-routes-dynamic-static-match/app/test/[testParam]/page.tsx
0 → 100644
View file @
98aaf5c6
export
default
async
function
TestParamPage
({
params
,
}:
{
params
:
Promise
<
{
testParam
:
string
}
>
})
{
const
{
testParam
}
=
await
params
return
<
p
>
Children:
{
testParam
}
</
p
>
}
test/e2e/app-dir/parallel-routes-dynamic-static-match/app/test/static/page.tsx
0 → 100644
View file @
98aaf5c6
export
default
function
StaticPage
()
{
return
<
p
>
Children: Static Page
</
p
>
}
test/e2e/app-dir/parallel-routes-dynamic-static-match/next.config.js
0 → 100644
View file @
98aaf5c6
/**
* @type {import('next').NextConfig}
*/
const
nextConfig
=
{}
module
.
exports
=
nextConfig
test/e2e/app-dir/parallel-routes-dynamic-static-match/parallel-routes-dynamic-static-match.test.ts
0 → 100644
View file @
98aaf5c6
import
{
nextTestSetup
}
from
'e2e-utils'
describe
(
'parallel-routes-dynamic-static-match'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
files
:
__dirname
,
})
it
(
'should match dynamic parallel route for dynamic path'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/test/dynamic-val'
)
// The children slot should render the dynamic [testParam] page
expect
(
await
browser
.
elementById
(
'children'
).
text
()).
toContain
(
'Children: dynamic-val'
)
// The parallel slot should also match via [testParam]
expect
(
await
browser
.
elementById
(
'parallel'
).
text
()).
toContain
(
'Parallel: dynamic-val'
)
})
it
(
'should match dynamic parallel route for static path'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/test/static'
)
// The children slot should render the static page
expect
(
await
browser
.
elementById
(
'children'
).
text
()).
toContain
(
'Children: Static Page'
)
// The parallel slot should match via [testParam] with value "static",
// NOT fall back to the default.
// Bug #62656: this currently shows "Parallel: Default Fallback" instead.
expect
(
await
browser
.
elementById
(
'parallel'
).
text
()).
toContain
(
'Parallel: static'
)
})
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment