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
bbe2786b
Unverified
Commit
bbe2786b
authored
Jul 08, 2025
by
Hendrik Liebau
Committed by
GitHub
Jul 08, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unflake `segment cache (CDN cache busting)` redirect test (#80967)
parent
8c153021
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
router-act.ts
test/e2e/app-dir/segment-cache/router-act.ts
+18
-0
No files found.
test/e2e/app-dir/segment-cache/router-act.ts
View file @
bbe2786b
...
...
@@ -375,6 +375,24 @@ Choose a more specific substring to assert on.
await
browserResponse
.
finished
()
}
}
if
(
fulfilled
.
status
===
307
||
fulfilled
.
status
===
308
)
{
// If this was a redirect, give the browser time to follow the
// redirect, before continuing. We do that by waiting for the very
// next request to respond. Otherwise, we might exit early, before
// the request was added to the pending requests set.
await
new
Promise
<
void
>
((
resolve
)
=>
{
page
.
once
(
'request'
,
(
req
)
=>
{
const
handleResponse
=
(
res
:
Playwright
.
Response
)
=>
{
if
(
res
.
url
()
===
req
.
url
())
{
page
.
off
(
'response'
,
handleResponse
)
resolve
()
}
}
page
.
on
(
'response'
,
handleResponse
)
})
})
}
}
// After flushing the queue, wait for the microtask queue to be
...
...
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