Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: fix click tests on android (#42726)
Dmitry Gozmancca996eb83ce
diff --git a/tests/page/page-click-scroll.spec.ts b/tests/page/page-click-scroll.spec.tsindex 1cfaeb63ff..43ebcf6012 100644--- a/tests/page/page-click-scroll.spec.ts+++ b/tests/page/page-click-scroll.spec.ts@@ -167,7 +167,7 @@ it('should scroll instantly on retry when scroll-behavior is smooth', async ({ phtml { scroll-behavior: smooth; }body { margin: 0; }.spacer { height: 2000px; }- #header { position: fixed; top: 0; left: 0; right: 0; height: calc(100vh - 50px); background: rgba(0, 0, 0, 0.1); }+ #header { position: fixed; top: 0; left: 0; right: 0; bottom: 50px; background: rgba(0, 0, 0, 0.1); }button { height: 30px; }</style><div id="header"></div>diff --git a/tests/page/page-click.spec.ts b/tests/page/page-click.spec.tsindex 9206c6cd57..7b7bef30c6 100644--- a/tests/page/page-click.spec.ts+++ b/tests/page/page-click.spec.ts@@ -1027,7 +1027,9 @@ it('should click in an iframe with border 2', async ({ page }) => {expect(await page.evaluate('window._clicked')).toBe(true);});-it('should not retain removed iframe after clicking inside it', async ({ page }) => {+it('should not retain removed iframe after clicking inside it', async ({ page, isAndroid }) => {+ it.skip(isAndroid, 'requesting gc is not enough');+await page.setContent('<iframe srcdoc="<button>Click</button>"></iframe>');const button = page.frameLocator('iframe').getByRole('button');await button.waitFor();