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
1db1762a
Unverified
Commit
1db1762a
authored
Oct 30, 2025
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Oct 30, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] Deflake prerender suite (#85563)
Co-authored-by:
Zack Tanner
<
1939140+ztanner@users.noreply.github.com
>
parent
cac2dd80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
prerender.test.ts
test/e2e/prerender.test.ts
+11
-11
No files found.
test/e2e/prerender.test.ts
View file @
1db1762a
...
@@ -371,19 +371,19 @@ describe('Prerender', () => {
...
@@ -371,19 +371,19 @@ describe('Prerender', () => {
const
navigateTest
=
(
isDev
=
false
)
=>
{
const
navigateTest
=
(
isDev
=
false
)
=>
{
it
(
'should navigate between pages successfully'
,
async
()
=>
{
it
(
'should navigate between pages successfully'
,
async
()
=>
{
const
toBuild
=
[
// TODO: Compiling this many pages in parallel hits some race condition
'/'
,
// causing "SyntaxError: Unexpected non-whitespace character after JSON at position 614"
'/another'
,
// which persists throughout Next.js Server instance lifetime.
'/something'
,
// Compiling in batches to avoid that unknown bug.
'/normal'
,
const
toBuildBatches
=
[
'/blog/post-1'
,
[
'/'
,
'/another'
,
'/something'
,
'/normal'
],
'/blog/post-1/comment-1'
,
[
'/blog/post-1'
,
'/blog/post-1/comment-1'
,
'/catchall/first'
],
'/catchall/first'
,
]
]
await
waitFor
(
2500
)
for
(
const
toBuild
of
toBuildBatches
)
{
// eslint-disable-next-line no-loop-func -- we're not accessing `next` after the loop was exited.
await
Promise
.
all
(
toBuild
.
map
((
pg
)
=>
renderViaHTTP
(
next
.
url
,
pg
)))
await
Promise
.
all
(
toBuild
.
map
((
pg
)
=>
renderViaHTTP
(
next
.
url
,
pg
)))
}
const
browser
=
await
webdriver
(
next
.
url
,
'/'
)
const
browser
=
await
webdriver
(
next
.
url
,
'/'
)
let
text
=
await
browser
.
elementByCss
(
'p'
).
text
()
let
text
=
await
browser
.
elementByCss
(
'p'
).
text
()
...
...
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