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' ...@@ -3,7 +3,7 @@ import { createRouterAct } from 'router-act'
import { waitFor } from 'next-test-utils' import { waitFor } from 'next-test-utils'
describe('segment cache (basic tests)', () => { describe('segment cache (basic tests)', () => {
const { next, isNextDev } = nextTestSetup({ const { next, isNextDev, isNextDeploy } = nextTestSetup({
files: __dirname, files: __dirname,
}) })
if (isNextDev) { if (isNextDev) {
...@@ -277,7 +277,10 @@ describe('segment cache (basic tests)', () => { ...@@ -277,7 +277,10 @@ describe('segment cache (basic tests)', () => {
expect(await dynamicDiv.innerHTML()).toBe('Dynamic page') 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> let act: ReturnType<typeof createRouterAct>
const browser = await next.browser('/same-page-nav', { const browser = await next.browser('/same-page-nav', {
beforePageLoad(page) { beforePageLoad(page) {
...@@ -341,7 +344,8 @@ describe('segment cache (basic tests)', () => { ...@@ -341,7 +344,8 @@ describe('segment cache (basic tests)', () => {
await linkWithHashB.click() await linkWithHashB.click()
}, 'no-requests') }, 'no-requests')
expect(await readRandomNumberFromPage()).toBe(randomNumber3) expect(await readRandomNumberFromPage()).toBe(randomNumber3)
}) }
)
it('does not throw an error when navigating to a page with a server action', async () => { it('does not throw an error when navigating to a page with a server action', async () => {
let act: ReturnType<typeof createRouterAct> 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