mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
wip: retrying through mouse.wheel
This commit is contained in:
parent
bd7ca85fb4
commit
5653d9e255
@ -2567,9 +2567,7 @@ 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.mouse.wheel(0,4000)
|
||||
expect(await page.locator('body').getByText('This shouldn\'t be visible at first!').all()).toHaveLength(1)
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user