Unverified Commit 69d604b8 authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

temporarily disable flaky deploy test (#83032)

Temporarily disabling this to prevent failing test noise while
investigating the discrepancy between start/deploy.
parent e818e64c
...@@ -1907,29 +1907,32 @@ describe('app-dir action handling', () => { ...@@ -1907,29 +1907,32 @@ describe('app-dir action handling', () => {
}) })
describe('action discarding', () => { describe('action discarding', () => {
it('should not trigger a refresh for a server action that gets discarded due to a navigation (without revalidation)', async () => { // TODO: Investigate flaky behavior when deployed
let browser = await next.browser('/action-discarding') if (!isNextDeploy) {
await browser.waitForIdleNetwork() it('should not trigger a refresh for a server action that gets discarded due to a navigation (without revalidation)', async () => {
const initialRandomNumber = await browser let browser = await next.browser('/action-discarding')
.elementByCss('#cached-random') await browser.waitForIdleNetwork()
.text() const initialRandomNumber = await browser
.elementByCss('#cached-random')
.text()
await browser.elementByCss('#slow-action').click() await browser.elementByCss('#slow-action').click()
// navigate to destination // navigate to destination
await browser.elementByCss('#navigate-destination').click() await browser.elementByCss('#navigate-destination').click()
// wait for the 2s action to finish // wait for the 2s action to finish
await waitFor(2000) await waitFor(2000)
await retry(async () => { await retry(async () => {
const newRandomNumber = await browser const newRandomNumber = await browser
.elementByCss('#cached-random') .elementByCss('#cached-random')
.text() .text()
expect(newRandomNumber).toBe(initialRandomNumber) expect(newRandomNumber).toBe(initialRandomNumber)
})
}) })
}) }
it('should trigger a refresh for a server action that gets discarded due to a navigation (with revalidation)', async () => { it('should trigger a refresh for a server action that gets discarded due to a navigation (with revalidation)', async () => {
let browser = await next.browser('/action-discarding') let browser = await next.browser('/action-discarding')
......
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