mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
dd36a18140
commit
bd7ca85fb4
@ -2567,9 +2567,9 @@ describe('lazy import components', () => {
|
|||||||
expect(html).not.toContain('This shouldn\'t be visible at first!')
|
expect(html).not.toContain('This shouldn\'t be visible at first!')
|
||||||
const { page } = await renderPage('/lazy-import-components')
|
const { page } = await renderPage('/lazy-import-components')
|
||||||
expect(await page.locator('body').getByText('This shouldn\'t be visible at first!').all()).toHaveLength(0)
|
expect(await page.locator('body').getByText('This shouldn\'t be visible at first!').all()).toHaveLength(0)
|
||||||
await page.evaluate(()=>{
|
await page.evaluate(() => {
|
||||||
window.scrollTo(0, document.body.scrollHeight)
|
window.scrollTo(0, document.body.scrollHeight)
|
||||||
})
|
})
|
||||||
expect(await page.locator('body').getByText('This shouldn\'t be visible at first!').all()).toHaveLength(1)
|
expect(await page.locator('body').getByText('This shouldn\'t be visible at first!').all()).toHaveLength(1)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user