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(chromium): mark passing popup tests as passing (#1297)
Dmitry Gozmancf46f1b0563e
diff --git a/test/popup.spec.js b/test/popup.spec.jsindex bdb51e97ad..ceb914295b 100644--- a/test/popup.spec.js+++ b/test/popup.spec.js@@ -83,7 +83,6 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, WEexpect(online).toBe(false);});it('should inherit http credentials from browser context', async function({browser, server}) {- // Use unique user/password since Chromium caches credentials per origin.server.setAuth('/title.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: { username: 'user', password: 'pass' }@@ -123,7 +122,7 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, WEawait context.close();expect(size).toEqual({width: 400, height: 500});});- it.fail(CHROMIUM)('should apply addInitScript from browser context', async function({browser, server}) {+ it('should apply addInitScript from browser context', async function({browser, server}) {const context = await browser.newContext();await context.addInitScript(() => window.injected = 123);const page = await context.newPage();@@ -135,7 +134,7 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, WEawait context.close();expect(injected).toBe(123);});- it.fail(CHROMIUM || FFOX)('should expose function from browser context', async function({browser, server}) {+ it.fail(FFOX)('should expose function from browser context', async function({browser, server}) {const context = await browser.newContext();await context.exposeFunction('add', (a, b) => a + b);const page = await context.newPage();