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 as flaky according to the new policy (#1322)
Andrey Lushnikovac5b518beaf0
diff --git a/test/browsercontext.spec.js b/test/browsercontext.spec.jsindex 61f6e04839..4a0b95a533 100644--- a/test/browsercontext.spec.js+++ b/test/browsercontext.spec.js@@ -20,7 +20,7 @@ const utils = require('./utils');/*** @type {BrowserTestSuite}*/-module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, FFOX, WEBKIT}) {+module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, FFOX, WEBKIT, LINUX}) {const {describe, xdescribe, fdescribe} = testRunner;const {it, fit, xit, dit} = testRunner;const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;@@ -420,8 +420,8 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, FFexpect(response.status()).toBe(200);await context.close();});- // flaky: https://github.com/microsoft/playwright/issues/1303- it.fail(FFOX)('should fail if wrong credentials', async({browser, server}) => {+ // flaky: https://github.com/microsoft/playwright/pull/1301/checks?check_run_id=496478707+ it.fail(FFOX && LINUX)('should fail if wrong credentials', async({browser, server}) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: { username: 'foo', password: 'bar' }diff --git a/test/evaluation.spec.js b/test/evaluation.spec.jsindex 9b8fbe332d..8dc1e25cc1 100644--- a/test/evaluation.spec.js+++ b/test/evaluation.spec.js@@ -22,7 +22,7 @@ const bigint = typeof BigInt !== 'undefined';/*** @type {PageTestSuite}*/-module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT}) {+module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT, LINUX}) {const {describe, xdescribe, fdescribe} = testRunner;const {it, fit, xit, dit} = testRunner;const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;@@ -230,8 +230,8 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})await page.evaluate(e => e.textContent, element).catch(e => error = e);expect(error.message).toContain('JSHandle is disposed');});- it.fail(FFOX)('should simulate a user gesture', async({page, server}) => {- // Flaky on Limux: https://github.com/microsoft/playwright/issues/1305+ // flaky: https://github.com/microsoft/playwright/pull/1277/checks?check_run_id=496501774+ it.fail(FFOX && LINUX)('should simulate a user gesture', async({page, server}) => {const result = await page.evaluate(() => {document.body.appendChild(document.createTextNode('test'));document.execCommand('selectAll');diff --git a/test/workers.spec.js b/test/workers.spec.jsindex 732a93207e..01179a25a7 100644--- a/test/workers.spec.js+++ b/test/workers.spec.js@@ -21,14 +21,14 @@ const { waitEvent } = utils;/*** @type {PageTestSuite}*/-module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT}) {+module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT, LINUX}) {const {describe, xdescribe, fdescribe} = testRunner;const {it, fit, xit, dit} = testRunner;const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;describe('Workers', function() {- // Flaky: https://github.com/microsoft/playwright/issues/1300- it.fail(FFOX)('Page.workers', async function({page, server}) {+ // flaky: https://github.com/microsoft/playwright/pull/1297/checks?check_run_id=496348690+ it.fail(FFOX && LINUX)('Page.workers', async function({page, server}) {await Promise.all([page.waitForEvent('worker'),page.goto(server.PREFIX + '/worker/worker.html')]);@@ -102,8 +102,8 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})expect(destroyed).toBe(true);expect(page.workers().length).toBe(0);});- // Flaky: https://github.com/microsoft/playwright/issues/1300- it.fail(FFOX)('should report network activity', async function({page, server}) {+ // flaky: https://github.com/microsoft/playwright/pull/1277/checks?check_run_id=496461538+ it.fail(FFOX && LINUX)('should report network activity', async function({page, server}) {const [worker] = await Promise.all([page.waitForEvent('worker'),page.goto(server.PREFIX + '/worker/worker.html'),