Unverified Commit 9c36a320 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update app-static e2e test (#46900)

This ensures we properly check for the none cached content correctly

x-ref:
https://github.com/vercel/next.js/actions/runs/4351711739/jobs/7603961011
parent 030fd1d6
......@@ -482,7 +482,7 @@ createNextDescribe(
const html = await res.text()
const $ = cheerio.load(html)
const pageData = $('#page-data').text()
const pageData2 = $('#page-data2').text()
for (let i = 0; i < 3; i++) {
const res2 = await fetchViaHTTP(
......@@ -493,7 +493,7 @@ createNextDescribe(
const html2 = await res2.text()
const $2 = cheerio.load(html2)
expect($2('#page-data').text()).not.toBe(pageData)
expect($2('#page-data2').text()).not.toBe(pageData2)
}
})
......
......@@ -4,9 +4,6 @@ export default async function Page() {
const data = await fetch(
new Request('https://next-data-api-endpoint.vercel.app/api/random', {
method: 'POST',
next: {
revalidate: 0,
},
})
).then((res) => res.text())
......
......@@ -2,9 +2,6 @@ export default async function Page() {
const data = await fetch(
new Request('https://next-data-api-endpoint.vercel.app/api/random', {
method: 'POST',
next: {
revalidate: 0,
},
})
).then((res) => res.text())
......
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