diff --git a/tests/library/headful.spec.ts b/tests/library/headful.spec.ts index 8b048ee026..bfe3b4e79e 100644 --- a/tests/library/headful.spec.ts +++ b/tests/library/headful.spec.ts @@ -65,6 +65,22 @@ it('should not crash when creating second context', async ({ browser }) => { } }); +it('should click when viewport size is larger than screen', async ({ page, browserName }) => { + it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22082' }); + it.fixme(browserName === 'firefox'); + await page.setViewportSize({ + width: 3000, + height: 3000, + }); + await page.setContent(` + + + `); + await page.locator('button').click(); +}); + it('should click background tab', async ({ page, server }) => { await page.setContent(`empty.html`); await page.click('a');