mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
chore: autofix
This commit is contained in:
parent
b8c36774f5
commit
aa3df0bc6f
@ -2680,12 +2680,12 @@ describe('lazy import components', () => {
|
|||||||
const rect = (await component.boundingBox())!
|
const rect = (await component.boundingBox())!
|
||||||
await page.mouse.move(rect.x + rect.width / 2, rect.y + rect.height / 2)
|
await page.mouse.move(rect.x + rect.width / 2, rect.y + rect.height / 2)
|
||||||
await page.waitForResponse(response =>
|
await page.waitForResponse(response =>
|
||||||
response.status() === 200 && response.text().then(text => text.includes("This shouldn't be visible at first with events!"))
|
response.status() === 200 && response.text().then(text => text.includes("This shouldn't be visible at first with events!"))
|
||||||
)
|
)
|
||||||
expect(await page.locator('body').getByText('This shouldn\'t be visible at first with events!').all()).toHaveLength(1)
|
expect(await page.locator('body').getByText('This shouldn\'t be visible at first with events!').all()).toHaveLength(1)
|
||||||
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight))
|
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight))
|
||||||
await page.waitForResponse(response =>
|
await page.waitForResponse(response =>
|
||||||
response.status() === 200 && response.text().then(text => text.includes("This shouldn't be visible at first with viewport!"))
|
response.status() === 200 && response.text().then(text => text.includes("This shouldn't be visible at first with viewport!"))
|
||||||
)
|
)
|
||||||
expect(await page.locator('body').getByText('This shouldn\'t be visible at first with viewport!').all()).toHaveLength(1)
|
expect(await page.locator('body').getByText('This shouldn\'t be visible at first with viewport!').all()).toHaveLength(1)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user