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', () => {
})
describe('action discarding', () => {
it('should not trigger a refresh for a server action that gets discarded due to a navigation (without revalidation)', async () => {
let browser = await next.browser('/action-discarding')
await browser.waitForIdleNetwork()
const initialRandomNumber = await browser
.elementByCss('#cached-random')
.text()
// TODO: Investigate flaky behavior when deployed
if (!isNextDeploy) {
it('should not trigger a refresh for a server action that gets discarded due to a navigation (without revalidation)', async () => {
let browser = await next.browser('/action-discarding')
await browser.waitForIdleNetwork()
const initialRandomNumber = await browser
.elementByCss('#cached-random')
.text()
await browser.elementByCss('#slow-action').click()
await browser.elementByCss('#slow-action').click()
// navigate to destination
await browser.elementByCss('#navigate-destination').click()
// navigate to destination
await browser.elementByCss('#navigate-destination').click()
// wait for the 2s action to finish
await waitFor(2000)
// wait for the 2s action to finish
await waitFor(2000)
await retry(async () => {
const newRandomNumber = await browser
.elementByCss('#cached-random')
.text()
await retry(async () => {
const newRandomNumber = await browser
.elementByCss('#cached-random')
.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 () => {
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