Unverified Commit 8ac02358 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update flakey prerender fallback test (#64001)

This test could flake as it's racing the fallback data loading and the
initial assertion checking the initial fallback text so this skips
waiting for hydration to allow checking fallback text faster.

x-ref:
https://github.com/vercel/next.js/actions/runs/8529790447/job/23366315476?pr=64000

Closes NEXT-2985
parent d49e2c2c
...@@ -846,7 +846,9 @@ describe('Prerender', () => { ...@@ -846,7 +846,9 @@ describe('Prerender', () => {
}) })
it('should handle fallback only page correctly HTML', async () => { it('should handle fallback only page correctly HTML', async () => {
const browser = await webdriver(next.url, '/fallback-only/first%2Fpost') const browser = await webdriver(next.url, '/fallback-only/first%2Fpost', {
waitHydration: false,
})
const text = await browser.elementByCss('p').text() const text = await browser.elementByCss('p').text()
expect(text).toContain('hi fallback') expect(text).toContain('hi fallback')
......
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