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: uncomment slow ff tests (#1479)
Pavel Feldman23e5d80e06c6
diff --git a/test/emulation.spec.js b/test/emulation.spec.jsindex 4fcbf7aa51..cac8194649 100644--- a/test/emulation.spec.js+++ b/test/emulation.spec.js@@ -237,7 +237,7 @@ module.exports.describe = function({testRunner, expect, playwright, headless, FFawait page.emulateMedia({ colorScheme: 'bad' }).catch(e => error = e);expect(error.message).toBe('Unsupported color scheme: bad');});- it.fail(FFOX)('should work during navigation', async({page, server}) => {+ it('should work during navigation', async({page, server}) => {await page.emulateMedia({ colorScheme: 'light' });const navigated = page.goto(server.EMPTY_PAGE);for (let i = 0; i < 9; i++) {diff --git a/test/headful.spec.js b/test/headful.spec.jsindex bb9a07b248..466bc12de8 100644--- a/test/headful.spec.js+++ b/test/headful.spec.js@@ -40,8 +40,8 @@ module.exports.describe = function({testRunner, expect, browserType, defaultBrowawait browserContext.close();await removeUserDataDir(userDataDir);});- // see https://github.com/microsoft/playwright/issues/717- it.slow().fail((WIN && CHROMIUM) || FFOX)('headless should be able to read cookies written by headful', async({server}) => {+ it.slow().fail(WIN && CHROMIUM)('headless should be able to read cookies written by headful', async({server}) => {+ // see https://github.com/microsoft/playwright/issues/717const userDataDir = await makeUserDataDir();// Write a cookie in headful chromeconst headfulContext = await browserType.launchPersistentContext(userDataDir, headfulOptions);diff --git a/test/launcher.spec.js b/test/launcher.spec.jsindex 739b812814..574782a030 100644--- a/test/launcher.spec.js+++ b/test/launcher.spec.js@@ -291,7 +291,7 @@ module.exports.describe = function({testRunner, expect, defaultBrowserOptions, p// This might throw. See https://github.com/GoogleChrome/puppeteer/issues/2778await removeUserDataDir(userDataDir);});- it.slow().fail(FFOX)('userDataDir option should restore state', async({server}) => {+ it.slow()('userDataDir option should restore state', async({server}) => {const userDataDir = await makeUserDataDir();const browserContext = await browserType.launchPersistentContext(userDataDir, defaultBrowserOptions);const page = await browserContext.newPage();diff --git a/test/page.spec.js b/test/page.spec.jsindex 339b1c14cc..f8147f4d69 100644--- a/test/page.spec.js+++ b/test/page.spec.js@@ -224,7 +224,7 @@ module.exports.describe = function({testRunner, expect, headless, playwright, FF});});// @see https://github.com/GoogleChrome/puppeteer/issues/3865- it.fail(FFOX)('should not throw when there are console messages in detached iframes', async({page, server}) => {+ it('should not throw when there are console messages in detached iframes', async({page, server}) => {await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([page.waitForEvent('popup'),diff --git a/test/popup.spec.js b/test/popup.spec.jsindex dddc567afd..349dae590c 100644--- a/test/popup.spec.js+++ b/test/popup.spec.js@@ -87,7 +87,7 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, WEawait context.close();expect(request.headers['foo']).toBe('bar');});- it.fail(FFOX)('should inherit offline from browser context', async function({browser, server}) {+ it('should inherit offline from browser context', async function({browser, server}) {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);