diff --git a/test/basic.test.ts b/test/basic.test.ts index 3bab3df655..8280d83137 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -2677,7 +2677,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(1) const component = await page.locator('#lazyevent'); - 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.waitForLoadState('networkidle') expect(await page.locator('body').getByText('This shouldn\'t be visible at first with events!').all()).toHaveLength(1)