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 is stable by default (#6953)
Andrey Lushnikov53d68bdb38b7
diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.ymlindex fcdec0d3f9..88f7826a4b 100644--- a/.github/workflows/tests_secondary.yml+++ b/.github/workflows/tests_secondary.yml@@ -257,8 +257,8 @@ jobs:name: chrome-stable-mac-test-resultspath: test-results- firefox_stable_linux:- name: "Firefox Stable (Linux)"+ firefox_beta_linux:+ name: "Firefox Beta (Linux)"runs-on: ubuntu-20.04steps:- uses: actions/checkout@v2@@ -270,20 +270,20 @@ jobs:PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1- run: npm run build- run: node lib/cli/cli install-deps firefox- - run: node lib/cli/cli install firefox-stable chromium+ - run: node lib/cli/cli install firefox-beta chromium- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run ftestenv:- PWTEST_CHANNEL: firefox-stable+ PWTEST_CHANNEL: firefox-beta- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.jsonif: always()- uses: actions/upload-artifact@v1if: ${{ always() }}with:- name: firefox-stable-linux-test-results+ name: firefox-beta-linux-test-resultspath: test-results- firefox_stable_win:- name: "Firefox Stable (Win)"+ firefox_beta_win:+ name: "Firefox Beta (Win)"runs-on: windows-lateststeps:- uses: actions/checkout@v2@@ -295,22 +295,22 @@ jobs:PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1- run: npm run build- run: node lib/cli/cli install-deps chromium- - run: node lib/cli/cli install firefox-stable chromium+ - run: node lib/cli/cli install firefox-beta chromium- run: npm run ftestshell: bashenv:- PWTEST_CHANNEL: firefox-stable+ PWTEST_CHANNEL: firefox-beta- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.jsonif: always()shell: bash- uses: actions/upload-artifact@v1if: ${{ always() }}with:- name: firefox-stable-win-test-results+ name: firefox-beta-win-test-resultspath: test-results- firefox_stable_mac:- name: "Firefox Stable (Mac)"+ firefox_beta_mac:+ name: "Firefox Beta (Mac)"runs-on: macos-10.15steps:- uses: actions/checkout@v2@@ -321,16 +321,16 @@ jobs:env:PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1- run: npm run build- - run: node lib/cli/cli install firefox-stable chromium+ - run: node lib/cli/cli install firefox-beta chromium- run: npm run ftestenv:- PWTEST_CHANNEL: firefox-stable+ PWTEST_CHANNEL: firefox-beta- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.jsonif: always()- uses: actions/upload-artifact@v1if: ${{ always() }}with:- name: firefox-stable-mac-test-results+ name: firefox-beta-mac-test-resultspath: test-resultsedge_stable_mac:diff --git a/README.md b/README.mdindex 7f7f4324c7..cffd6e5a85 100644--- a/README.md+++ b/README.md@@ -1,6 +1,6 @@# 🎭 Playwright-[](https://www.npmjs.com/package/playwright) [](https://aka.ms/playwright-slack) <!-- 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 --> <!-- GEN:webkit-version-badge -->[](https://webkit.org/)<!-- GEN:stop -->+[](https://www.npmjs.com/package/playwright) [](https://aka.ms/playwright-slack) <!-- 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 --> <!-- GEN:webkit-version-badge -->[](https://webkit.org/)<!-- GEN:stop -->## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)@@ -10,7 +10,7 @@ Playwright is a Node.js library to automate [Chromium](https://www.chromium.org/| :--- | :---: | :---: | :---: || Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: || WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |-| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |+| Firefox <!-- GEN:firefox-version -->89.0<!-- 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/docs/intro/#system-requirements) for details.diff --git a/browsers.json b/browsers.jsonindex 46460da2c2..f8e5984a40 100644--- a/browsers.json+++ b/browsers.json@@ -8,12 +8,12 @@},{"name": "firefox",- "revision": "1268",+ "revision": "1269","installByDefault": true},{- "name": "firefox-stable",- "revision": "1259",+ "name": "firefox-beta",+ "revision": "1260","installByDefault": false},{diff --git a/docs/src/browsers.md b/docs/src/browsers.mdindex b0ff44aaa8..455d11ea80 100644--- a/docs/src/browsers.md+++ b/docs/src/browsers.md@@ -11,8 +11,7 @@ of the browsers it supports, so that the latest Playwright would support the lat## ChromiumFor Google Chrome, Microsoft Edge and other Chromium-based browsers, by default, Playwright uses open source Chromium builds.-These builds match the current [Chrome Dev Channel](https://support.google.com/chrome/a/answer/9027636?hl=en) at the time-of each Playwright release, i.e. it is new with every Playwright update. Since Chromium project is ahead of the branded browsers,+ Since Chromium project is ahead of the branded browsers,when the world is on Google Chrome 89, Playwright already supports Chromium 91 that will hit Google Chrome and Microsoft Edgeif a few weeks.@@ -21,7 +20,7 @@ on when to opt into stable channels, refer to the [Google Chrome & Microsoft Edg## Firefox-Playwright's Firefox version matches the recent [Firefox Beta](https://www.mozilla.org/en-US/firefox/channel/desktop/)+Playwright's Firefox version matches the recent [Firefox Stable](https://www.mozilla.org/en-US/firefox/new/)build.## WebKitdiff --git a/src/server/firefox/firefox.ts b/src/server/firefox/firefox.tsindex f347ec160b..183e09ff34 100644--- a/src/server/firefox/firefox.ts+++ b/src/server/firefox/firefox.ts@@ -35,8 +35,8 @@ export class Firefox extends BrowserType {executablePath(channel?: string): string {if (channel) {let executablePath = undefined;- if ((channel as any) === 'firefox-stable')- executablePath = this._registry.executablePath('firefox-stable');+ if ((channel as any) === 'firefox-beta')+ executablePath = this._registry.executablePath('firefox-beta');assert(executablePath, `unsupported firefox channel "${channel}"`);assert(fs.existsSync(executablePath), `"${channel}" channel is not installed. Try running 'npx playwright install ${channel}'`);return executablePath;diff --git a/src/server/validateDependencies.ts b/src/server/validateDependencies.tsindex ee76ebf278..8314619fa9 100644--- a/src/server/validateDependencies.ts+++ b/src/server/validateDependencies.ts@@ -42,7 +42,7 @@ const DL_OPEN_LIBRARIES = {'webkit': ['libGLESv2.so.2', 'libx264.so'],'webkit-technology-preview': ['libGLESv2.so.2', 'libx264.so'],'firefox': [],- 'firefox-stable': [],+ 'firefox-beta': [],'clank': [],'ffmpeg': [],};diff --git a/src/utils/registry.ts b/src/utils/registry.tsindex 526b16c397..57bb8f6197 100644--- a/src/utils/registry.ts+++ b/src/utils/registry.ts@@ -22,8 +22,8 @@ import * as util from 'util';import { getUbuntuVersionSync } from './ubuntuVersion';import { assert, getFromENV } from './utils';-export type BrowserName = 'chromium'|'webkit'|'firefox'|'firefox-stable'|'ffmpeg'|'webkit-technology-preview';-export const allBrowserNames: Set<BrowserName> = new Set(['chromium', 'webkit', 'firefox', 'ffmpeg', 'webkit-technology-preview', 'firefox-stable']);+export type BrowserName = 'chromium'|'webkit'|'firefox'|'firefox-beta'|'ffmpeg'|'webkit-technology-preview';+export const allBrowserNames: Set<BrowserName> = new Set(['chromium', 'webkit', 'firefox', 'ffmpeg', 'webkit-technology-preview', 'firefox-beta']);const PACKAGE_PATH = path.join(__dirname, '..', '..');@@ -58,7 +58,7 @@ const EXECUTABLE_PATHS = {'win32': ['firefox', 'firefox.exe'],'win64': ['firefox', 'firefox.exe'],},- 'firefox-stable': {+ 'firefox-beta': {'ubuntu18.04': ['firefox', 'firefox'],'ubuntu20.04': ['firefox', 'firefox'],'mac10.13': ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox'],@@ -127,16 +127,16 @@ const DOWNLOAD_URLS = {'win32': '%s/builds/firefox/%s/firefox-win32.zip','win64': '%s/builds/firefox/%s/firefox-win64.zip',},- 'firefox-stable': {- 'ubuntu18.04': '%s/builds/firefox-stable/%s/firefox-stable-ubuntu-18.04.zip',- 'ubuntu20.04': '%s/builds/firefox-stable/%s/firefox-stable-ubuntu-20.04.zip',- 'mac10.13': '%s/builds/firefox-stable/%s/firefox-stable-mac-10.14.zip',- 'mac10.14': '%s/builds/firefox-stable/%s/firefox-stable-mac-10.14.zip',- 'mac10.15': '%s/builds/firefox-stable/%s/firefox-stable-mac-10.14.zip',- 'mac11': '%s/builds/firefox-stable/%s/firefox-stable-mac-10.14.zip',- 'mac11-arm64': '%s/builds/firefox-stable/%s/firefox-stable-mac-11.0-arm64.zip',- 'win32': '%s/builds/firefox-stable/%s/firefox-stable-win32.zip',- 'win64': '%s/builds/firefox-stable/%s/firefox-stable-win64.zip',+ 'firefox-beta': {+ 'ubuntu18.04': '%s/builds/firefox-beta/%s/firefox-beta-ubuntu-18.04.zip',+ 'ubuntu20.04': '%s/builds/firefox-beta/%s/firefox-beta-ubuntu-20.04.zip',+ 'mac10.13': '%s/builds/firefox-beta/%s/firefox-beta-mac-10.14.zip',+ 'mac10.14': '%s/builds/firefox-beta/%s/firefox-beta-mac-10.14.zip',+ 'mac10.15': '%s/builds/firefox-beta/%s/firefox-beta-mac-10.14.zip',+ 'mac11': '%s/builds/firefox-beta/%s/firefox-beta-mac-10.14.zip',+ 'mac11-arm64': '%s/builds/firefox-beta/%s/firefox-beta-mac-11.0-arm64.zip',+ 'win32': '%s/builds/firefox-beta/%s/firefox-beta-win32.zip',+ 'win64': '%s/builds/firefox-beta/%s/firefox-beta-win64.zip',},'webkit': {'ubuntu18.04': '%s/builds/webkit/%s/webkit-ubuntu-18.04.zip',@@ -306,7 +306,7 @@ export class Registry {path.join(browserDirectory, 'minibrowser-wpe', 'lib'),];case 'firefox':- case 'firefox-stable':+ case 'firefox-beta':return [path.join(browserDirectory, 'firefox')];default:return [];@@ -336,7 +336,7 @@ export class Registry {const envDownloadHost: { [key: string]: string } = {'chromium': 'PLAYWRIGHT_CHROMIUM_DOWNLOAD_HOST','firefox': 'PLAYWRIGHT_FIREFOX_DOWNLOAD_HOST',- 'firefox-stable': 'PLAYWRIGHT_FIREFOX_DOWNLOAD_HOST',+ 'firefox-beta': 'PLAYWRIGHT_FIREFOX_DOWNLOAD_HOST','webkit': 'PLAYWRIGHT_WEBKIT_DOWNLOAD_HOST','webkit-technology-preview': 'PLAYWRIGHT_WEBKIT_DOWNLOAD_HOST','ffmpeg': 'PLAYWRIGHT_FFMPEG_DOWNLOAD_HOST',diff --git a/utils/roll_browser.js b/utils/roll_browser.jsindex dc6611c272..151d9d02ec 100755--- a/utils/roll_browser.js+++ b/utils/roll_browser.js@@ -30,7 +30,7 @@ function usage() {usage: ${SCRIPT_NAME} <browser> <revision>Roll the <browser> to a specific <revision> and generate new protocol.-Supported browsers: chromium, firefox, webkit, ffmpeg, firefox-stable, webkit-technology-preview.+Supported browsers: chromium, firefox, webkit, ffmpeg, firefox-beta, webkit-technology-preview.Example:${SCRIPT_NAME} chromium 123456