Unverified Commit 1cf02b2c authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Skip failing segment-cache deploy test (#90601)

Co-authored-by: 's avatarCursor Agent <cursoragent@cursor.com>
parent 420560d0
......@@ -3,7 +3,7 @@ import { createRouterAct } from 'router-act'
import { waitFor } from 'next-test-utils'
describe('segment cache (basic tests)', () => {
const { next, isNextDev } = nextTestSetup({
const { next, isNextDev, isNextDeploy } = nextTestSetup({
files: __dirname,
})
if (isNextDev) {
......@@ -277,7 +277,10 @@ describe('segment cache (basic tests)', () => {
expect(await dynamicDiv.innerHTML()).toBe('Dynamic page')
})
it('refreshes page segments when navigating to the exact same URL as the current location', async () => {
// TODO: Fix same-page navigation refresh behavior in deploy mode
;(isNextDeploy ? it.skip : it)(
'refreshes page segments when navigating to the exact same URL as the current location',
async () => {
let act: ReturnType<typeof createRouterAct>
const browser = await next.browser('/same-page-nav', {
beforePageLoad(page) {
......@@ -341,7 +344,8 @@ describe('segment cache (basic tests)', () => {
await linkWithHashB.click()
}, 'no-requests')
expect(await readRandomNumberFromPage()).toBe(randomNumber3)
})
}
)
it('does not throw an error when navigating to a page with a server action', async () => {
let act: ReturnType<typeof createRouterAct>
......
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