Unverified Commit 1c5c0ba3 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Temporarily skip flakey action revalidate (#53134)

These have been flaking for quite a while so skips them more
consistently until they are investigated.

x-ref:
https://github.com/vercel/next.js/actions/runs/5650048471/job/15305721826#step:27:590
parent a0856eb5
......@@ -422,10 +422,8 @@ createNextDescribe(
}, 'https://example.com/')
})
// TODO: investigate flakey behavior on deploy
const skipDeploy = (global as any).isNextDeploy ? it.skip : it
skipDeploy('should handle revalidatePath', async () => {
// TODO: investigate flakey behavior with revalidate
it.skip('should handle revalidatePath', async () => {
const browser = await next.browser('/revalidate')
const randomNumber = await browser.elementByCss('#random-number').text()
const justPutIt = await browser.elementByCss('#justputit').text()
......@@ -450,7 +448,8 @@ createNextDescribe(
}, 'success')
})
skipDeploy('should handle revalidateTag', async () => {
// TODO: investigate flakey behavior with revalidate
it.skip('should handle revalidateTag', async () => {
const browser = await next.browser('/revalidate')
const randomNumber = await browser.elementByCss('#random-number').text()
const justPutIt = await browser.elementByCss('#justputit').text()
......@@ -475,7 +474,7 @@ createNextDescribe(
}, 'success')
})
// TODO: investigate flakey behavior
// TODO: investigate flakey behavior with revalidate
it.skip('should handle revalidateTag + redirect', async () => {
const browser = await next.browser('/revalidate')
const randomNumber = await browser.elementByCss('#random-number').text()
......@@ -501,9 +500,7 @@ createNextDescribe(
}, 'success')
})
skipDeploy(
'should store revalidation data in the prefetch cache',
async () => {
it.skip('should store revalidation data in the prefetch cache', async () => {
const browser = await next.browser('/revalidate')
const justPutIt = await browser.elementByCss('#justputit').text()
await browser.elementByCss('#revalidate-justputit').click()
......@@ -511,9 +508,7 @@ createNextDescribe(
// TODO: investigate flakiness when deployed
if (!isNextDeploy) {
await check(async () => {
const newJustPutIt = await browser
.elementByCss('#justputit')
.text()
const newJustPutIt = await browser.elementByCss('#justputit').text()
expect(newJustPutIt).not.toBe(justPutIt)
return 'success'
}, 'success')
......@@ -533,10 +528,10 @@ createNextDescribe(
const newJustPutIt2 = await browser.elementByCss('#justputit').text()
expect(newJustPutIt).toEqual(newJustPutIt2)
}
)
})
skipDeploy('should revalidate when cookies.set is called', async () => {
// TODO: investigate flakey behavior with revalidate
it.skip('should revalidate when cookies.set is called', async () => {
const browser = await next.browser('/revalidate')
const randomNumber = await browser.elementByCss('#random-cookie').text()
......@@ -551,9 +546,8 @@ createNextDescribe(
}, 'success')
})
skipDeploy(
'should revalidate when cookies.set is called in a client action',
async () => {
// TODO: investigate flakey behavior with revalidate
it.skip('should revalidate when cookies.set is called in a client action', async () => {
const browser = await next.browser('/revalidate')
await browser.refresh()
......@@ -608,10 +602,9 @@ createNextDescribe(
? 'success'
: 'failure'
}, 'success')
}
)
})
skipDeploy.each(['tag', 'path'])(
it.skip.each(['tag', 'path'])(
'should invalidate client cache when %s is revalidated',
async (type) => {
const browser = await next.browser('/revalidate')
......
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