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
feat(firefox): roll to r1154 (#3333)
Andrey Lushnikov411c738026c3
diff --git a/README.md b/README.mdindex ab0becc2e4..4674498edf 100644--- a/README.md+++ b/README.md@@ -1,6 +1,6 @@# 🎭 Playwright-[](https://www.npmjs.com/package/playwright) [](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [](https://webkit.org/)+[](https://www.npmjs.com/package/playwright) [](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [](https://webkit.org/)## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)@@ -10,7 +10,7 @@ Playwright is a Node.js library to automate [Chromium](https://www.chromium.org/| :--- | :---: | :---: | :---: || Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: || WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |-| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |+| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |Headless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.diff --git a/browsers.json b/browsers.jsonindex c76cfeda6e..fa34a5209d 100644--- a/browsers.json+++ b/browsers.json@@ -8,7 +8,7 @@},{"name": "firefox",- "revision": "1152",+ "revision": "1154","download": true},{diff --git a/test/browser.spec.ts b/test/browser.spec.tsindex 2ebe07eba7..ffc831919f 100644--- a/test/browser.spec.ts+++ b/test/browser.spec.ts@@ -44,5 +44,5 @@ it('version should work', async function({browser}) {if (CHROMIUM)expect(version.match(/^\d+\.\d+\.\d+\.\d+$/)).toBeTruthy();else- expect(version.match(/^\d+\.\d+$/)).toBeTruthy();+ expect(version.match(/^\d+\.\d+/)).toBeTruthy();});diff --git a/test/browsercontext-add-cookies.spec.ts b/test/browsercontext-add-cookies.spec.tsindex b8ff9755f1..4a3d7cbabb 100644--- a/test/browsercontext-add-cookies.spec.ts+++ b/test/browsercontext-add-cookies.spec.ts@@ -327,7 +327,7 @@ it('should(not) block third party cookies', async({context, page, server}) => {}, server.CROSS_PROCESS_PREFIX + '/grid.html');await page.frames()[1].evaluate(`document.cookie = 'username=John Doe'`);await page.waitForTimeout(2000);- const allowsThirdParty = CHROMIUM || FFOX;+ const allowsThirdParty = CHROMIUM;const cookies = await context.cookies(server.CROSS_PROCESS_PREFIX + '/grid.html');if (allowsThirdParty) {expect(cookies).toEqual([diff --git a/test/browsercontext-cookies.spec.ts b/test/browsercontext-cookies.spec.tsindex 3f1598c173..4da9fdc47d 100644--- a/test/browsercontext-cookies.spec.ts+++ b/test/browsercontext-cookies.spec.ts@@ -16,7 +16,7 @@*/import utils from './utils';-const {WEBKIT, WIN} = testOptions;+const {FFOX, WEBKIT, WIN} = testOptions;it('should return no cookies in pristine browser context', async({context, page, server}) => {expect(await context.cookies()).toEqual([]);@@ -37,7 +37,7 @@ it('should get a cookie', async({context, page, server}) => {expires: -1,httpOnly: false,secure: false,- sameSite: 'None',+ sameSite: FFOX ? 'Lax' : 'None',}]);});@@ -59,7 +59,7 @@ it('should get a non-session cookie', async({context, page, server}) => {expires: date / 1000,httpOnly: false,secure: false,- sameSite: 'None',+ sameSite: FFOX ? 'Lax' : 'None',}]);});@@ -115,7 +115,7 @@ it('should get multiple cookies', async({context, page, server}) => {expires: -1,httpOnly: false,secure: false,- sameSite: 'None',+ sameSite: FFOX ? 'Lax' : 'None',},{name: 'username',@@ -125,7 +125,7 @@ it('should get multiple cookies', async({context, page, server}) => {expires: -1,httpOnly: false,secure: false,- sameSite: 'None',+ sameSite: FFOX ? 'Lax' : 'None',},]);});diff --git a/test/defaultbrowsercontext.spec.js b/test/defaultbrowsercontext.spec.jsindex 13d9961835..27373f8db0 100644--- a/test/defaultbrowsercontext.spec.js+++ b/test/defaultbrowsercontext.spec.js@@ -65,7 +65,7 @@ it('context.cookies() should work', async ({server, launchPersistent}) => {expires: -1,httpOnly: false,secure: false,- sameSite: 'None',+ sameSite: FFOX ? 'Lax' : 'None',}]);});@@ -126,7 +126,7 @@ it('should(not) block third party cookies', async ({server, launchPersistent}) =return document.cookie;});await page.waitForTimeout(2000);- const allowsThirdParty = CHROMIUM || FFOX;+ const allowsThirdParty = CHROMIUM;expect(documentCookie).toBe(allowsThirdParty ? 'username=John Doe' : '');const cookies = await context.cookies(server.CROSS_PROCESS_PREFIX + '/grid.html');if (allowsThirdParty) {diff --git a/test/headful.spec.js b/test/headful.spec.jsindex 5540e9ab6c..9b0ffb7f90 100644--- a/test/headful.spec.js+++ b/test/headful.spec.js@@ -109,7 +109,7 @@ it('should(not) block third party cookies', async({browserType, defaultBrowserOpreturn document.cookie;});await page.waitForTimeout(2000);- const allowsThirdParty = CHROMIUM || FFOX;+ const allowsThirdParty = CHROMIUM;expect(documentCookie).toBe(allowsThirdParty ? 'username=John Doe' : '');const cookies = await page.context().cookies(server.CROSS_PROCESS_PREFIX + '/grid.html');if (allowsThirdParty) {diff --git a/test/page-goto.spec.js b/test/page-goto.spec.jsindex 1e74355768..53ff33bd33 100644--- a/test/page-goto.spec.js+++ b/test/page-goto.spec.js@@ -117,7 +117,7 @@ it('should return response when page changes its URL after load', async({page, sexpect(response.status()).toBe(200);});-it('should work with subframes return 204', async({page, server}) => {+it.fail(FFOX)('should work with subframes return 204', async({page, server}) => {server.setRoute('/frames/frame.html', (req, res) => {res.statusCode = 204;res.end();diff --git a/test/page-wait-for-navigation.spec.js b/test/page-wait-for-navigation.spec.jsindex 970aa8caa5..e53d97a175 100644--- a/test/page-wait-for-navigation.spec.js+++ b/test/page-wait-for-navigation.spec.js@@ -141,7 +141,7 @@ it('should work with DOM history.back()/history.forward()', async({page, server}expect(page.url()).toBe(server.PREFIX + '/second.html');});-it('should work when subframe issues window.stop()', async({page, server}) => {+it.fail(FFOX)('should work when subframe issues window.stop()', async({page, server}) => {server.setRoute('/frames/style.css', (req, res) => {});const navigationPromise = page.goto(server.PREFIX + '/frames/one-frame.html');const frame = await new Promise(f => page.once('frameattached', f));diff --git a/test/proxy.spec.js b/test/proxy.spec.jsindex 648c3f4cf4..667bdd16b1 100644--- a/test/proxy.spec.js+++ b/test/proxy.spec.js@@ -87,7 +87,10 @@ it('should exclude patterns', async ({browserType, defaultBrowserOptions, serverit('should use socks proxy', async ({ browserType, defaultBrowserOptions, parallelIndex }) => {const server = socks.createServer((info, accept, deny) => {+ let socket;if (socket = accept(true)) {+ // Catch and ignore ECONNRESET errors.+ socket.on('error', () => {});const body = '<html><title>Served by the SOCKS proxy</title></html>';socket.end(['HTTP/1.1 200 OK',