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
63e373bf
Commit
63e373bf
authored
Jul 31, 2025
by
Janka Uryga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: partially disable root params tests when deployed
parent
f05f9eff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
50 deletions
+56
-50
prefetch-runtime.test.ts
...r/segment-cache/prefetch-runtime/prefetch-runtime.test.ts
+56
-50
No files found.
test/e2e/app-dir/segment-cache/prefetch-runtime/prefetch-runtime.test.ts
View file @
63e373bf
...
@@ -152,6 +152,8 @@ describe('<Link prefetch={true}> (runtime prefetch)', () => {
...
@@ -152,6 +152,8 @@ describe('<Link prefetch={true}> (runtime prefetch)', () => {
},
},
])
])
// TODO(runtime-ppr) - visiting root params that weren't in generateStaticParams errors when deployed
if
(
!
isNextDeploy
)
{
// Reveal the link to trigger a runtime prefetch for a different value of the root param
// Reveal the link to trigger a runtime prefetch for a different value of the root param
await
act
(
async
()
=>
{
await
act
(
async
()
=>
{
const
linkToggle
=
await
browser
.
elementByCss
(
const
linkToggle
=
await
browser
.
elementByCss
(
...
@@ -169,6 +171,7 @@ describe('<Link prefetch={true}> (runtime prefetch)', () => {
...
@@ -169,6 +171,7 @@ describe('<Link prefetch={true}> (runtime prefetch)', () => {
block
:
'reject'
,
block
:
'reject'
,
},
},
])
])
}
// Navigate to the first page
// Navigate to the first page
await
act
(
async
()
=>
{
await
act
(
async
()
=>
{
...
@@ -199,6 +202,8 @@ describe('<Link prefetch={true}> (runtime prefetch)', () => {
...
@@ -199,6 +202,8 @@ describe('<Link prefetch={true}> (runtime prefetch)', () => {
'Dynamic content'
'Dynamic content'
)
)
// TODO(runtime-ppr) - visiting root params that weren't in generateStaticParams errors when deployed
if
(
!
isNextDeploy
)
{
await
browser
.
back
()
await
browser
.
back
()
// Reveal the link to the second page again. It should not be prefetched again
// Reveal the link to the second page again. It should not be prefetched again
...
@@ -237,6 +242,7 @@ describe('<Link prefetch={true}> (runtime prefetch)', () => {
...
@@ -237,6 +242,7 @@ describe('<Link prefetch={true}> (runtime prefetch)', () => {
expect
(
await
browser
.
elementById
(
'dynamic-content'
).
text
()).
toEqual
(
expect
(
await
browser
.
elementById
(
'dynamic-content'
).
text
()).
toEqual
(
'Dynamic content'
'Dynamic content'
)
)
}
})
})
it
(
'includes search params, but not dynamic content'
,
async
()
=>
{
it
(
'includes search params, but not dynamic content'
,
async
()
=>
{
...
...
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