mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
test: adjust test
This commit is contained in:
parent
87cd1048ca
commit
4e469b7de5
@ -2776,7 +2776,7 @@ describe('lazy import components', () => {
|
||||
expect(await page.locator('body').getByText('This should be visible at first with viewport!').all()).toHaveLength(1)
|
||||
expect(await page.locator('body').getByText('This should be visible at first with events!').all()).toHaveLength(2)
|
||||
// The default value is immediately truthy, however, there is a hydration mismatch without the hack
|
||||
expect(await page.locator('body').getByText('This should be visible at first with conditions!').all()).toHaveLength(2)
|
||||
expect(await page.locator('body').getByText('This should be visible at first with conditions!').all()).toHaveLength(1)
|
||||
const component = page.locator('#lazyevent')
|
||||
const rect = (await component.boundingBox())!
|
||||
await page.mouse.move(rect.x + rect.width / 2, rect.y + rect.height / 2)
|
||||
|
Loading…
Reference in New Issue
Block a user