Unverified Commit 2705e7c1 authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

test: match instant nav shells by prefetch kind

Co-authored-by: 's avatarTobias Koppers <1365881+sokra@users.noreply.github.com>
parent a09ffb22
...@@ -85,9 +85,11 @@ describe('instant-nav-panel', () => { ...@@ -85,9 +85,11 @@ describe('instant-nav-panel', () => {
browser.eval((selector) => { browser.eval((selector) => {
document.querySelector<HTMLAnchorElement>(selector)!.click() document.querySelector<HTMLAnchorElement>(selector)!.click()
}, selector) }, selector)
// Match the static prefetch, not a later runtime/navigation response
// that can contain another copy of the same Suspense fallback.
const expectedResponse = const expectedResponse =
href === '/target-page/my-post?search=foo' href === '/target-page/my-post?search=foo'
? { includes: 'dynamic-skeleton' } ? { includes: 'dynamic-skeleton', kind: 'static' as const }
: undefined : undefined
if ((await browser.locator(selector).count()) > 0) { if ((await browser.locator(selector).count()) > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment