chore: cut v1.21.0 (#13405)

This commit is contained in:
Andrey Lushnikov 2022-04-07 19:16:22 -06:00 committed by GitHub
parent f803a929e4
commit 91333daf09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 114 additions and 114 deletions

View file

@ -143,7 +143,7 @@ Alternatively, you can use [Command line tools](./cli.md#install-system-dependen
pool: pool:
vmImage: 'ubuntu-20.04' vmImage: 'ubuntu-20.04'
container: mcr.microsoft.com/playwright:v1.21.0-focal container: mcr.microsoft.com/playwright:v1.22.0-focal
steps: steps:
... ...
@ -157,7 +157,7 @@ Running Playwright on CircleCI requires the following steps:
```yml ```yml
docker: docker:
- image: mcr.microsoft.com/playwright:v1.21.0-focal - image: mcr.microsoft.com/playwright:v1.22.0-focal
environment: environment:
NODE_ENV: development # Needed if playwright is in `devDependencies` NODE_ENV: development # Needed if playwright is in `devDependencies`
``` ```
@ -179,7 +179,7 @@ to run tests on Jenkins.
```groovy ```groovy
pipeline { pipeline {
agent { docker { image 'mcr.microsoft.com/playwright:v1.21.0-focal' } } agent { docker { image 'mcr.microsoft.com/playwright:v1.22.0-focal' } }
stages { stages {
stage('e2e-tests') { stage('e2e-tests') {
steps { steps {
@ -196,7 +196,7 @@ pipeline {
Bitbucket Pipelines can use public [Docker images as build environments](https://confluence.atlassian.com/bitbucket/use-docker-images-as-build-environments-792298897.html). To run Playwright tests on Bitbucket, use our public Docker image ([see Dockerfile](./docker.md)). Bitbucket Pipelines can use public [Docker images as build environments](https://confluence.atlassian.com/bitbucket/use-docker-images-as-build-environments-792298897.html). To run Playwright tests on Bitbucket, use our public Docker image ([see Dockerfile](./docker.md)).
```yml ```yml
image: mcr.microsoft.com/playwright:v1.21.0-focal image: mcr.microsoft.com/playwright:v1.22.0-focal
``` ```
### GitLab CI ### GitLab CI
@ -209,7 +209,7 @@ stages:
tests: tests:
stage: test stage: test
image: mcr.microsoft.com/playwright:v1.21.0-focal image: mcr.microsoft.com/playwright:v1.22.0-focal
script: script:
... ...
``` ```

View file

@ -16,19 +16,19 @@ This image is published on [Docker Hub].
Replace 1.20.0 with your Playwright version: Replace 1.20.0 with your Playwright version:
```bash js ```bash js
docker pull mcr.microsoft.com/playwright:v1.21.0-focal docker pull mcr.microsoft.com/playwright:v1.22.0-focal
``` ```
```bash python ```bash python
docker pull mcr.microsoft.com/playwright/python:v1.21.0-focal docker pull mcr.microsoft.com/playwright/python:v1.22.0-focal
``` ```
```bash csharp ```bash csharp
docker pull mcr.microsoft.com/playwright/dotnet:v1.21.0-focal docker pull mcr.microsoft.com/playwright/dotnet:v1.22.0-focal
``` ```
```bash java ```bash java
docker pull mcr.microsoft.com/playwright/java:v1.21.0-focal docker pull mcr.microsoft.com/playwright/java:v1.22.0-focal
``` ```
### Run the image ### Run the image
@ -40,19 +40,19 @@ By default, the Docker image will use the `root` user to run the browsers. This
On trusted websites, you can avoid creating a separate user and use root for it since you trust the code which will run on the browsers. On trusted websites, you can avoid creating a separate user and use root for it since you trust the code which will run on the browsers.
```bash js ```bash js
docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.21.0-focal /bin/bash docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.22.0-focal /bin/bash
``` ```
```bash python ```bash python
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.21.0-focal /bin/bash docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.22.0-focal /bin/bash
``` ```
```bash csharp ```bash csharp
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.21.0-focal /bin/bash docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.22.0-focal /bin/bash
``` ```
```bash java ```bash java
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.21.0-focal /bin/bash docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.22.0-focal /bin/bash
``` ```
#### Crawling and scraping #### Crawling and scraping
@ -60,19 +60,19 @@ docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.21.0-focal /
On untrusted websites, it's recommended to use a separate user for launching the browsers in combination with the seccomp profile. Inside the container or if you are using the Docker image as a base image you have to use `adduser` for it. On untrusted websites, it's recommended to use a separate user for launching the browsers in combination with the seccomp profile. Inside the container or if you are using the Docker image as a base image you have to use `adduser` for it.
```bash js ```bash js
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.21.0-focal /bin/bash docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.22.0-focal /bin/bash
``` ```
```bash python ```bash python
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.21.0-focal /bin/bash docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.22.0-focal /bin/bash
``` ```
```bash csharp ```bash csharp
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.21.0-focal /bin/bash docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.22.0-focal /bin/bash
``` ```
```bash java ```bash java
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.21.0-focal /bin/bash docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.22.0-focal /bin/bash
``` ```
[`seccomp_profile.json`](https://github.com/microsoft/playwright/blob/main/utils/docker/seccomp_profile.json) is needed to run Chromium with sandbox. This is a [default Docker seccomp profile](https://github.com/docker/engine/blob/d0d99b04cf6e00ed3fc27e81fc3d94e7eda70af3/profiles/seccomp/default.json) with extra user namespace cloning permissions: [`seccomp_profile.json`](https://github.com/microsoft/playwright/blob/main/utils/docker/seccomp_profile.json) is needed to run Chromium with sandbox. This is a [default Docker seccomp profile](https://github.com/docker/engine/blob/d0d99b04cf6e00ed3fc27e81fc3d94e7eda70af3/profiles/seccomp/default.json) with extra user namespace cloning permissions:

View file

@ -56,7 +56,7 @@ The snapshot name `example-test-1-chromium-darwin.png` consists of a few parts:
If you are not on the same operating system as your CI system, you can use Docker to generate/update the screenshots: If you are not on the same operating system as your CI system, you can use Docker to generate/update the screenshots:
```bash ```bash
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.21.0-focal /bin/bash docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.22.0-focal /bin/bash
npm install npm install
npx playwright test --update-snapshots npx playwright test --update-snapshots
``` ```

48
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "playwright-internal", "name": "playwright-internal",
"version": "1.21.0-next", "version": "1.22.0-next",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playwright-internal", "name": "playwright-internal",
"version": "1.21.0-next", "version": "1.22.0-next",
"license": "Apache-2.0", "license": "Apache-2.0",
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
@ -6066,11 +6066,11 @@
"version": "0.0.0" "version": "0.0.0"
}, },
"packages/playwright": { "packages/playwright": {
"version": "1.21.0-next", "version": "1.22.0-next",
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
}, },
"bin": { "bin": {
"playwright": "cli.js" "playwright": "cli.js"
@ -6080,11 +6080,11 @@
} }
}, },
"packages/playwright-chromium": { "packages/playwright-chromium": {
"version": "1.21.0-next", "version": "1.22.0-next",
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
}, },
"bin": { "bin": {
"playwright": "cli.js" "playwright": "cli.js"
@ -6094,7 +6094,7 @@
} }
}, },
"packages/playwright-core": { "packages/playwright-core": {
"version": "1.21.0-next", "version": "1.22.0-next",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"colors": "1.4.0", "colors": "1.4.0",
@ -6136,7 +6136,7 @@
"version": "0.0.2", "version": "0.0.2",
"license": "Apache-2.0", "license": "Apache-2.0",
"devDependencies": { "devDependencies": {
"@playwright/test": "1.21.0-next" "@playwright/test": "1.22.0-next"
}, },
"engines": { "engines": {
"node": ">=12" "node": ">=12"
@ -6147,7 +6147,7 @@
"version": "0.0.2", "version": "0.0.2",
"license": "Apache-2.0", "license": "Apache-2.0",
"devDependencies": { "devDependencies": {
"@playwright/test": "1.21.0-next" "@playwright/test": "1.22.0-next"
}, },
"engines": { "engines": {
"node": ">=12" "node": ">=12"
@ -6158,18 +6158,18 @@
"version": "0.0.2", "version": "0.0.2",
"license": "Apache-2.0", "license": "Apache-2.0",
"devDependencies": { "devDependencies": {
"@playwright/test": "1.21.0-next" "@playwright/test": "1.22.0-next"
}, },
"engines": { "engines": {
"node": ">=12" "node": ">=12"
} }
}, },
"packages/playwright-firefox": { "packages/playwright-firefox": {
"version": "1.21.0-next", "version": "1.22.0-next",
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
}, },
"bin": { "bin": {
"playwright": "cli.js" "playwright": "cli.js"
@ -6180,7 +6180,7 @@
}, },
"packages/playwright-test": { "packages/playwright-test": {
"name": "@playwright/test", "name": "@playwright/test",
"version": "1.21.0-next", "version": "1.22.0-next",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@babel/code-frame": "7.16.7", "@babel/code-frame": "7.16.7",
@ -6212,7 +6212,7 @@
"ms": "2.1.3", "ms": "2.1.3",
"open": "8.4.0", "open": "8.4.0",
"pirates": "4.0.4", "pirates": "4.0.4",
"playwright-core": "1.21.0-next", "playwright-core": "1.22.0-next",
"rimraf": "3.0.2", "rimraf": "3.0.2",
"source-map-support": "0.4.18", "source-map-support": "0.4.18",
"stack-utils": "2.0.5", "stack-utils": "2.0.5",
@ -6255,11 +6255,11 @@
} }
}, },
"packages/playwright-webkit": { "packages/playwright-webkit": {
"version": "1.21.0-next", "version": "1.22.0-next",
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
}, },
"bin": { "bin": {
"playwright": "cli.js" "playwright": "cli.js"
@ -7016,19 +7016,19 @@
"@playwright/experimental-ct-react": { "@playwright/experimental-ct-react": {
"version": "file:packages/playwright-ct-react", "version": "file:packages/playwright-ct-react",
"requires": { "requires": {
"@playwright/test": "1.21.0-next" "@playwright/test": "1.22.0-next"
} }
}, },
"@playwright/experimental-ct-svelte": { "@playwright/experimental-ct-svelte": {
"version": "file:packages/playwright-ct-svelte", "version": "file:packages/playwright-ct-svelte",
"requires": { "requires": {
"@playwright/test": "1.21.0-next" "@playwright/test": "1.22.0-next"
} }
}, },
"@playwright/experimental-ct-vue": { "@playwright/experimental-ct-vue": {
"version": "file:packages/playwright-ct-vue", "version": "file:packages/playwright-ct-vue",
"requires": { "requires": {
"@playwright/test": "1.21.0-next" "@playwright/test": "1.22.0-next"
} }
}, },
"@playwright/test": { "@playwright/test": {
@ -7063,7 +7063,7 @@
"ms": "2.1.3", "ms": "2.1.3",
"open": "8.4.0", "open": "8.4.0",
"pirates": "4.0.4", "pirates": "4.0.4",
"playwright-core": "1.21.0-next", "playwright-core": "1.22.0-next",
"rimraf": "3.0.2", "rimraf": "3.0.2",
"source-map-support": "0.4.18", "source-map-support": "0.4.18",
"stack-utils": "2.0.5", "stack-utils": "2.0.5",
@ -9848,13 +9848,13 @@
"playwright": { "playwright": {
"version": "file:packages/playwright", "version": "file:packages/playwright",
"requires": { "requires": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
} }
}, },
"playwright-chromium": { "playwright-chromium": {
"version": "file:packages/playwright-chromium", "version": "file:packages/playwright-chromium",
"requires": { "requires": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
} }
}, },
"playwright-core": { "playwright-core": {
@ -9890,13 +9890,13 @@
"playwright-firefox": { "playwright-firefox": {
"version": "file:packages/playwright-firefox", "version": "file:packages/playwright-firefox",
"requires": { "requires": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
} }
}, },
"playwright-webkit": { "playwright-webkit": {
"version": "file:packages/playwright-webkit", "version": "file:packages/playwright-webkit",
"requires": { "requires": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
} }
}, },
"pngjs": { "pngjs": {

View file

@ -1,7 +1,7 @@
{ {
"name": "playwright-internal", "name": "playwright-internal",
"private": true, "private": true,
"version": "1.21.0-next", "version": "1.22.0-next",
"description": "A high-level API to automate web browsers", "description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",

View file

@ -1,6 +1,6 @@
{ {
"name": "playwright-chromium", "name": "playwright-chromium",
"version": "1.21.0-next", "version": "1.22.0-next",
"description": "A high-level API to automate Chromium", "description": "A high-level API to automate Chromium",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
@ -26,6 +26,6 @@
"install": "node install.js" "install": "node install.js"
}, },
"dependencies": { "dependencies": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
} }
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "playwright-core", "name": "playwright-core",
"version": "1.21.0-next", "version": "1.22.0-next",
"description": "A high-level API to automate web browsers", "description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",

View file

@ -1,22 +1,22 @@
{ {
"name": "@playwright/experimental-ct-react", "name": "@playwright/experimental-ct-react",
"private": true, "private": true,
"version": "0.0.2", "version": "0.0.2",
"description": "Playwright Component Testing for React", "description": "Playwright Component Testing for React",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
"engines": { "engines": {
"node": ">=12" "node": ">=12"
}, },
"author": { "author": {
"name": "Microsoft Corporation" "name": "Microsoft Corporation"
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"exports": { "exports": {
"./register": "./register.mjs", "./register": "./register.mjs",
"./test": "./test.js" "./test": "./test.js"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "1.21.0-next" "@playwright/test": "1.22.0-next"
} }
} }

View file

@ -1,22 +1,22 @@
{ {
"name": "@playwright/experimental-ct-svelte", "name": "@playwright/experimental-ct-svelte",
"private": true, "private": true,
"version": "0.0.2", "version": "0.0.2",
"description": "Playwright Component Testing for Svelte", "description": "Playwright Component Testing for Svelte",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
"engines": { "engines": {
"node": ">=12" "node": ">=12"
}, },
"author": { "author": {
"name": "Microsoft Corporation" "name": "Microsoft Corporation"
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"exports": { "exports": {
"./register": "./register.mjs", "./register": "./register.mjs",
"./test": "./test.js" "./test": "./test.js"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "1.21.0-next" "@playwright/test": "1.22.0-next"
} }
} }

View file

@ -1,22 +1,22 @@
{ {
"name": "@playwright/experimental-ct-vue", "name": "@playwright/experimental-ct-vue",
"private": true, "private": true,
"version": "0.0.2", "version": "0.0.2",
"description": "Playwright Component Testing for Svelte", "description": "Playwright Component Testing for Svelte",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
"engines": { "engines": {
"node": ">=12" "node": ">=12"
}, },
"author": { "author": {
"name": "Microsoft Corporation" "name": "Microsoft Corporation"
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"exports": { "exports": {
"./register": "./register.mjs", "./register": "./register.mjs",
"./test": "./test.js" "./test": "./test.js"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "1.21.0-next" "@playwright/test": "1.22.0-next"
} }
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "playwright-firefox", "name": "playwright-firefox",
"version": "1.21.0-next", "version": "1.22.0-next",
"description": "A high-level API to automate Firefox", "description": "A high-level API to automate Firefox",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
@ -26,6 +26,6 @@
"install": "node install.js" "install": "node install.js"
}, },
"dependencies": { "dependencies": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
} }
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "@playwright/test", "name": "@playwright/test",
"version": "1.21.0-next", "version": "1.22.0-next",
"description": "A high-level API to automate web browsers", "description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
@ -58,7 +58,7 @@
"ms": "2.1.3", "ms": "2.1.3",
"open": "8.4.0", "open": "8.4.0",
"pirates": "4.0.4", "pirates": "4.0.4",
"playwright-core": "1.21.0-next", "playwright-core": "1.22.0-next",
"rimraf": "3.0.2", "rimraf": "3.0.2",
"source-map-support": "0.4.18", "source-map-support": "0.4.18",
"stack-utils": "2.0.5", "stack-utils": "2.0.5",

View file

@ -1,6 +1,6 @@
{ {
"name": "playwright-webkit", "name": "playwright-webkit",
"version": "1.21.0-next", "version": "1.22.0-next",
"description": "A high-level API to automate WebKit", "description": "A high-level API to automate WebKit",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
@ -25,6 +25,6 @@
"install": "node install.js" "install": "node install.js"
}, },
"dependencies": { "dependencies": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
} }
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "playwright", "name": "playwright",
"version": "1.21.0-next", "version": "1.22.0-next",
"description": "A high-level API to automate web browsers", "description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
@ -26,6 +26,6 @@
"install": "node install.js" "install": "node install.js"
}, },
"dependencies": { "dependencies": {
"playwright-core": "1.21.0-next" "playwright-core": "1.22.0-next"
} }
} }