test: mark as flaky according to the new policy (#1322)
Closes #1300, #1303, #1305
This commit is contained in:
parent
23cf3be828
commit
ac5b518bea
|
|
@ -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, FF
|
|||
expect(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' }
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue