[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-04-08 17:00:52 +00:00 committed by GitHub
parent dd36a18140
commit bd7ca85fb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2567,9 +2567,9 @@ describe('lazy import components', () => {
expect(html).not.toContain('This shouldn\'t be visible at first!')
const { page } = await renderPage('/lazy-import-components')
expect(await page.locator('body').getByText('This shouldn\'t be visible at first!').all()).toHaveLength(0)
await page.evaluate(()=>{
window.scrollTo(0, document.body.scrollHeight)
})
await page.evaluate(() => {
window.scrollTo(0, document.body.scrollHeight)
})
expect(await page.locator('body').getByText('This shouldn\'t be visible at first!').all()).toHaveLength(1)
})
})