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:
parent
d49e2c2c4c
commit
8ac023583f
1 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue