From 15c680388061b82a3d071ea4c3fa3dc2e3cc5fc7 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Tue, 11 Apr 2023 08:47:47 +0000 Subject: [PATCH] test: add test for clicking in large viewports (#22322) Right now we cannot click on the boundaries of the viewports that are larger than screen size in headed firefox. https://github.com/microsoft/playwright/issues/22082 --- tests/library/headful.spec.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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');