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
This commit is contained in:
JJ Kasper 2024-04-02 15:31:31 -07:00 committed by GitHub
parent d49e2c2c4c
commit 8ac023583f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -846,7 +846,9 @@ describe('Prerender', () => {
})
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()
expect(text).toContain('hi fallback')