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(firefox): enable some passing tests (#536)
Dmitry Gozman6cf70e2e4cad
diff --git a/test/click.spec.js b/test/click.spec.jsindex b2d19118cf..39325b4876 100644--- a/test/click.spec.js+++ b/test/click.spec.js@@ -78,7 +78,7 @@ module.exports.describe = function({testRunner, expect, playwright, FFOX, CHROMIawait page.click('button');expect(await page.evaluate(() => result)).toBe('Clicked');});- it.skip(FFOX)('should click with disabled javascript', async({newPage, server}) => {+ it('should click with disabled javascript', async({newPage, server}) => {const page = await newPage({ javaScriptEnabled: false });await page.goto(server.PREFIX + '/wrappedlink.html');await Promise.all([diff --git a/test/evaluation.spec.js b/test/evaluation.spec.jsindex 4da4f02e41..cba1938ddd 100644--- a/test/evaluation.spec.js+++ b/test/evaluation.spec.js@@ -247,7 +247,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})const error = await errorPromise;expect(error.message).toContain('navigation');});- it.skip(FFOX)('should not throw an error when evaluation does a navigation', async({page, server}) => {+ it('should not throw an error when evaluation does a navigation', async({page, server}) => {await page.goto(server.PREFIX + '/one-style.html');const result = await page.evaluate(() => {window.location = '/empty.html';@@ -354,7 +354,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})const result = await childFrame.evaluate(foo => foo.bar, handle);expect(result).toBe('baz');});- it.skip(FFOX)('should allow cross-frame element handles', async({page, server}) => {+ it('should allow cross-frame element handles', async({page, server}) => {await page.goto(server.PREFIX + '/frames/one-frame.html');const bodyHandle = await page.mainFrame().childFrames()[0].$('body');const result = await page.evaluate(body => body.innerHTML, bodyHandle);diff --git a/test/page.spec.js b/test/page.spec.jsindex afb4ef7408..a8cf9e0786 100644--- a/test/page.spec.js+++ b/test/page.spec.js@@ -855,7 +855,7 @@ module.exports.describe = function({testRunner, expect, headless, playwright, FFexpect(await page.evaluate(() => result.onInput)).toEqual(['blue']);expect(await page.evaluate(() => result.onChange)).toEqual(['blue']);});- it.skip(FFOX)('should not throw when select causes navigation', async({page, server}) => { await page.goto(server.PREFIX + '/input/select.html');+ it('should not throw when select causes navigation', async({page, server}) => { await page.goto(server.PREFIX + '/input/select.html');await page.$eval('select', select => select.addEventListener('input', () => window.location = '/empty.html'));await Promise.all([page.select('select', 'blue'),