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: mark a few tests as fixme (#32985)
Dmitry Gozmane6afb650befc
diff --git a/tests/config/utils.ts b/tests/config/utils.tsindex 74158aeeae..3743e97d80 100644--- a/tests/config/utils.ts+++ b/tests/config/utils.ts@@ -61,7 +61,7 @@ export function expectedSSLError(browserName: string, platform: string): RegExpelse if (platform === 'win32')return /SSL peer certificate or SSH remote key was not OK/;else- return /Unacceptable TLS certificate/;+ return /Unacceptable TLS certificate|Operation was cancelled/;}return /SSL_ERROR_UNKNOWN/;}diff --git a/tests/library/browsercontext-viewport.spec.ts b/tests/library/browsercontext-viewport.spec.tsindex 4fdd181f8f..356e330079 100644--- a/tests/library/browsercontext-viewport.spec.ts+++ b/tests/library/browsercontext-viewport.spec.ts@@ -139,7 +139,9 @@ browserTest('should report null viewportSize when given null viewport', async ({await context.close();});-browserTest('should drag with high dpi', async ({ browser, server }) => {+browserTest('should drag with high dpi', async ({ browser, server, headless }) => {+ browserTest.fixme(!headless, 'Flaky on all browser in headed');+const page = await browser.newPage({ deviceScaleFactor: 2 });await page.goto(server.PREFIX + '/drag-n-drop.html');await page.hover('#source');diff --git a/tests/library/page-clock.spec.ts b/tests/library/page-clock.spec.tsindex d541d5d135..a660e5e8a4 100644--- a/tests/library/page-clock.spec.ts+++ b/tests/library/page-clock.spec.ts@@ -354,6 +354,7 @@ it.describe('popup', () => {page.waitForEvent('popup'),page.evaluate(url => window.open(url), server.PREFIX + '/popup.html'),]);+ await popup.waitForLoadState();const popupTime = await popup.evaluate('time');expect(popupTime).toBe(1000);});diff --git a/tests/page/expect-misc.spec.ts b/tests/page/expect-misc.spec.tsindex 7bf038231c..2242a55378 100644--- a/tests/page/expect-misc.spec.ts+++ b/tests/page/expect-misc.spec.ts@@ -349,6 +349,8 @@ test.describe('toBeInViewport', () => {});test('should respect ratio option', async ({ page, isAndroid }) => {+ test.fixme(isAndroid, 'ratio 0.24 is not in viewport for unknown reason');+await page.setContent(`<style>body, div, html { padding: 0; margin: 0; }</style><div id=big style="height: 400vh;"></div>diff --git a/tests/page/frame-goto.spec.ts b/tests/page/frame-goto.spec.tsindex 56146572f2..6603282bb3 100644--- a/tests/page/frame-goto.spec.ts+++ b/tests/page/frame-goto.spec.ts@@ -43,8 +43,9 @@ it('should reject when frame detaches', async ({ page, server, browserName }) =>expect(error.message.toLowerCase()).toContain('frame was detached');});-it('should continue after client redirect', async ({ page, server, isAndroid, mode }) => {+it('should continue after client redirect', async ({ page, server, isAndroid, browserName }) => {it.fixme(isAndroid);+ it.fixme(browserName === 'firefox', 'script.js is requested before navigationCommitted arrives');server.setRoute('/frames/script.js', () => {});const url = server.PREFIX + '/frames/child-redirect.html';diff --git a/tests/page/interception.spec.ts b/tests/page/interception.spec.tsindex f12d2d179b..9447a80fcd 100644--- a/tests/page/interception.spec.ts+++ b/tests/page/interception.spec.ts@@ -123,8 +123,9 @@ it('should intercept network activity from worker', async function({ page, serveit('should intercept worker requests when enabled after worker creation', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32355' }-}, async ({ page, server, isAndroid, browserName }) => {+}, async ({ page, server, isAndroid, browserName, browserMajorVersion }) => {it.skip(isAndroid);+ it.skip(browserName === 'chromium' && browserMajorVersion < 130, 'fixed in Chromium 130');await page.goto(server.EMPTY_PAGE);server.setRoute('/data_for_worker', (req, res) => res.end('failed to intercept'));diff --git a/tests/page/locator-misc-1.spec.ts b/tests/page/locator-misc-1.spec.tsindex 0174536898..616beb3e7f 100644--- a/tests/page/locator-misc-1.spec.ts+++ b/tests/page/locator-misc-1.spec.ts@@ -25,7 +25,9 @@ it('should hover @smoke', async ({ page, server }) => {expect(await page.evaluate(() => document.querySelector('button:hover').id)).toBe('button-6');});-it('should hover when Node is removed', async ({ page, server }) => {+it('should hover when Node is removed', async ({ page, server, headless }) => {+ it.skip(!headless, 'headed messes up with hover');+await page.goto(server.PREFIX + '/input/scrollable.html');await page.evaluate(() => delete window['Node']);const button = page.locator('#button-6');diff --git a/tests/page/page-click.spec.ts b/tests/page/page-click.spec.tsindex c2b024fec1..fccef2ed0e 100644--- a/tests/page/page-click.spec.ts+++ b/tests/page/page-click.spec.ts@@ -94,7 +94,9 @@ it('should not throw UnhandledPromiseRejection when page closes', async ({ page,]).catch(e => {});});-it('should click the 1x1 div', async ({ page }) => {+it('should click the 1x1 div', async ({ page, browserName, isWindows }) => {+ it.fixme(browserName === 'firefox' && isWindows, 'always times out');+await page.setContent(`<div style="width: 1px; height: 1px;" onclick="window.__clicked = true"></div>`);await page.click('div');expect(await page.evaluate('window.__clicked')).toBe(true);diff --git a/tests/page/page-request-fulfill.spec.ts b/tests/page/page-request-fulfill.spec.tsindex 8170cb73d5..3edcd0ba0a 100644--- a/tests/page/page-request-fulfill.spec.ts+++ b/tests/page/page-request-fulfill.spec.ts@@ -309,8 +309,10 @@ it('should fetch original request and fulfill', async ({ page, server, isElectroexpect(await page.title()).toEqual('Woof-Woof');});-it('should fulfill with multiple set-cookie', async ({ page, server, isElectron, electronMajorVersion }) => {+it('should fulfill with multiple set-cookie', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 14, 'Electron 14+ is required');+ it.skip(isAndroid, 'Android does not have an isolated context per test, so we get cookies from other tests');+const cookies = ['a=b', 'c=d'];await page.route('**/multiple-set-cookie.html', async route => {void route.fulfill({