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: unflake a few tests on Android (#36262)
Dmitry Gozmana8f9c4d02a2d
diff --git a/tests/page/page-add-init-script.spec.ts b/tests/page/page-add-init-script.spec.tsindex 86b9a83c84..4694b026b4 100644--- a/tests/page/page-add-init-script.spec.ts+++ b/tests/page/page-add-init-script.spec.ts@@ -99,9 +99,10 @@ it('init script should run only once in iframe', async ({ page, server, browserN]);});-it('init script should not observe playwright internals', async ({ server, page, trace }) => {+it('init script should not observe playwright internals', async ({ server, page, trace, isAndroid }) => {it.skip(!!process.env.PW_CLOCK, 'clock installs globalThis.__pwClock');- it.fixme(trace === 'on', 'tracing installs __playwright_snapshot_streamer');+ it.skip(trace === 'on', 'tracing installs __playwright_snapshot_streamer');+ it.fixme(isAndroid, 'There is probably context reuse between this test and some other test that installs a binding');await page.addInitScript(() => {window['check'] = () => {diff --git a/tests/page/page-network-sizes.spec.ts b/tests/page/page-network-sizes.spec.tsindex d63d58e79f..3157b4dffb 100644--- a/tests/page/page-network-sizes.spec.ts+++ b/tests/page/page-network-sizes.spec.ts@@ -41,7 +41,7 @@ it('should set bodySize to 0 if there was no body', async ({ page, server, brows]);const sizes = await request.sizes();expect(sizes.requestBodySize).toBe(0);- expect(sizes.requestHeadersSize).toBeGreaterThanOrEqual(200);+ expect(sizes.requestHeadersSize).toBeGreaterThanOrEqual(190);});it('should set bodySize, headersSize, and transferSize', async ({ page, server }) => {