From a286a43def014c35599d911e63328a18177e2f3b Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 15 Jul 2022 16:41:01 -0700 Subject: [PATCH 1/2] chore: mark 1.23.4 --- package-lock.json | 60 +++++++++++----------- package.json | 2 +- packages/playwright-chromium/package.json | 4 +- packages/playwright-core/package.json | 2 +- packages/playwright-ct-react/package.json | 4 +- packages/playwright-ct-svelte/package.json | 4 +- packages/playwright-ct-vue/package.json | 4 +- packages/playwright-ct-vue2/package.json | 4 +- packages/playwright-firefox/package.json | 4 +- packages/playwright-test/package.json | 4 +- packages/playwright-webkit/package.json | 4 +- packages/playwright/package.json | 4 +- 12 files changed, 50 insertions(+), 50 deletions(-) diff --git a/package-lock.json b/package-lock.json index e9be4f12bfbc6..02fba0b1f07a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "playwright-internal", - "version": "1.23.3", + "version": "1.23.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "playwright-internal", - "version": "1.23.3", + "version": "1.23.4", "license": "Apache-2.0", "workspaces": [ "packages/*" @@ -6459,11 +6459,11 @@ "version": "0.0.0" }, "packages/playwright": { - "version": "1.23.3", + "version": "1.23.4", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" }, "bin": { "playwright": "cli.js" @@ -6473,11 +6473,11 @@ } }, "packages/playwright-chromium": { - "version": "1.23.3", + "version": "1.23.4", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" }, "bin": { "playwright": "cli.js" @@ -6487,7 +6487,7 @@ } }, "packages/playwright-core": { - "version": "1.23.3", + "version": "1.23.4", "license": "Apache-2.0", "bin": { "playwright": "cli.js" @@ -6498,10 +6498,10 @@ }, "packages/playwright-ct-react": { "name": "@playwright/experimental-ct-react", - "version": "1.23.3", + "version": "1.23.4", "license": "Apache-2.0", "dependencies": { - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "@vitejs/plugin-react": "^1.0.7", "vite": "^2.9.5" }, @@ -6511,10 +6511,10 @@ }, "packages/playwright-ct-svelte": { "name": "@playwright/experimental-ct-svelte", - "version": "1.23.3", + "version": "1.23.4", "license": "Apache-2.0", "dependencies": { - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.30", "vite": "^2.9.5" }, @@ -6524,10 +6524,10 @@ }, "packages/playwright-ct-vue": { "name": "@playwright/experimental-ct-vue", - "version": "1.23.3", + "version": "1.23.4", "license": "Apache-2.0", "dependencies": { - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "@vitejs/plugin-vue": "^2.3.1", "vite": "^2.9.5" }, @@ -6575,10 +6575,10 @@ }, "packages/playwright-ct-vue2": { "name": "@playwright/experimental-ct-vue2", - "version": "1.23.3", + "version": "1.23.4", "license": "Apache-2.0", "dependencies": { - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "vite": "^2.9.5", "vite-plugin-vue2": "^2.0.1" }, @@ -6590,11 +6590,11 @@ } }, "packages/playwright-firefox": { - "version": "1.23.3", + "version": "1.23.4", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" }, "bin": { "playwright": "cli.js" @@ -6605,11 +6605,11 @@ }, "packages/playwright-test": { "name": "@playwright/test", - "version": "1.23.3", + "version": "1.23.4", "license": "Apache-2.0", "dependencies": { "@types/node": "*", - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" }, "bin": { "playwright": "cli.js" @@ -6619,11 +6619,11 @@ } }, "packages/playwright-webkit": { - "version": "1.23.3", + "version": "1.23.4", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" }, "bin": { "playwright": "cli.js" @@ -7437,7 +7437,7 @@ "@playwright/experimental-ct-react": { "version": "file:packages/playwright-ct-react", "requires": { - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "@vitejs/plugin-react": "^1.0.7", "vite": "^2.9.5" } @@ -7445,7 +7445,7 @@ "@playwright/experimental-ct-svelte": { "version": "file:packages/playwright-ct-svelte", "requires": { - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.30", "vite": "^2.9.5" } @@ -7453,7 +7453,7 @@ "@playwright/experimental-ct-vue": { "version": "file:packages/playwright-ct-vue", "requires": { - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "@vitejs/plugin-vue": "^2.3.1", "vite": "^2.9.5" }, @@ -7492,7 +7492,7 @@ "@playwright/experimental-ct-vue2": { "version": "file:packages/playwright-ct-vue2", "requires": { - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "vite": "^2.9.5", "vite-plugin-vue2": "^2.0.1", "vue": "^2.6.14" @@ -7502,7 +7502,7 @@ "version": "file:packages/playwright-test", "requires": { "@types/node": "*", - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" } }, "@rollup/pluginutils": { @@ -10311,13 +10311,13 @@ "playwright": { "version": "file:packages/playwright", "requires": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" } }, "playwright-chromium": { "version": "file:packages/playwright-chromium", "requires": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" } }, "playwright-core": { @@ -10326,13 +10326,13 @@ "playwright-firefox": { "version": "file:packages/playwright-firefox", "requires": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" } }, "playwright-webkit": { "version": "file:packages/playwright-webkit", "requires": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" } }, "postcss": { diff --git a/package.json b/package.json index 6d52464c5f0e1..50638f093f98a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "playwright-internal", "private": true, - "version": "1.23.3", + "version": "1.23.4", "description": "A high-level API to automate web browsers", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", diff --git a/packages/playwright-chromium/package.json b/packages/playwright-chromium/package.json index 268c692a5dfe5..e2b5f7039d11a 100644 --- a/packages/playwright-chromium/package.json +++ b/packages/playwright-chromium/package.json @@ -1,6 +1,6 @@ { "name": "playwright-chromium", - "version": "1.23.3", + "version": "1.23.4", "description": "A high-level API to automate Chromium", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", @@ -27,6 +27,6 @@ "install": "node install.js" }, "dependencies": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" } } diff --git a/packages/playwright-core/package.json b/packages/playwright-core/package.json index e6b3d4b18b997..98fa94f2e845c 100644 --- a/packages/playwright-core/package.json +++ b/packages/playwright-core/package.json @@ -1,6 +1,6 @@ { "name": "playwright-core", - "version": "1.23.3", + "version": "1.23.4", "description": "A high-level API to automate web browsers", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", diff --git a/packages/playwright-ct-react/package.json b/packages/playwright-ct-react/package.json index f969e254d18cc..fe09139626be8 100644 --- a/packages/playwright-ct-react/package.json +++ b/packages/playwright-ct-react/package.json @@ -1,6 +1,6 @@ { "name": "@playwright/experimental-ct-react", - "version": "1.23.3", + "version": "1.23.4", "description": "Playwright Component Testing for React", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", @@ -23,7 +23,7 @@ }, "dependencies": { "@vitejs/plugin-react": "^1.0.7", - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "vite": "^2.9.5" } } diff --git a/packages/playwright-ct-svelte/package.json b/packages/playwright-ct-svelte/package.json index f2801f51e0f4f..d9787556c252b 100644 --- a/packages/playwright-ct-svelte/package.json +++ b/packages/playwright-ct-svelte/package.json @@ -1,6 +1,6 @@ { "name": "@playwright/experimental-ct-svelte", - "version": "1.23.3", + "version": "1.23.4", "description": "Playwright Component Testing for Svelte", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", @@ -23,7 +23,7 @@ }, "dependencies": { "@sveltejs/vite-plugin-svelte": "^1.0.0-next.30", - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "vite": "^2.9.5" } } diff --git a/packages/playwright-ct-vue/package.json b/packages/playwright-ct-vue/package.json index cff4858bd1024..b46e4df2bfa12 100644 --- a/packages/playwright-ct-vue/package.json +++ b/packages/playwright-ct-vue/package.json @@ -1,6 +1,6 @@ { "name": "@playwright/experimental-ct-vue", - "version": "1.23.3", + "version": "1.23.4", "description": "Playwright Component Testing for Vue", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", @@ -23,7 +23,7 @@ }, "dependencies": { "@vitejs/plugin-vue": "^2.3.1", - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "vite": "^2.9.5" } } diff --git a/packages/playwright-ct-vue2/package.json b/packages/playwright-ct-vue2/package.json index c817d40800f68..312c22e1b0fda 100644 --- a/packages/playwright-ct-vue2/package.json +++ b/packages/playwright-ct-vue2/package.json @@ -1,6 +1,6 @@ { "name": "@playwright/experimental-ct-vue2", - "version": "1.23.3", + "version": "1.23.4", "description": "Playwright Component Testing for Vue2", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", @@ -22,7 +22,7 @@ } }, "dependencies": { - "@playwright/test": "1.23.3", + "@playwright/test": "1.23.4", "vite": "^2.9.5", "vite-plugin-vue2": "^2.0.1" }, diff --git a/packages/playwright-firefox/package.json b/packages/playwright-firefox/package.json index c1c386bb84048..5d24b76a2836e 100644 --- a/packages/playwright-firefox/package.json +++ b/packages/playwright-firefox/package.json @@ -1,6 +1,6 @@ { "name": "playwright-firefox", - "version": "1.23.3", + "version": "1.23.4", "description": "A high-level API to automate Firefox", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", @@ -27,6 +27,6 @@ "install": "node install.js" }, "dependencies": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" } } diff --git a/packages/playwright-test/package.json b/packages/playwright-test/package.json index 5b668f3fc224b..7484f0c6d3710 100644 --- a/packages/playwright-test/package.json +++ b/packages/playwright-test/package.json @@ -1,6 +1,6 @@ { "name": "@playwright/test", - "version": "1.23.3", + "version": "1.23.4", "description": "A high-level API to automate web browsers", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", @@ -33,6 +33,6 @@ "license": "Apache-2.0", "dependencies": { "@types/node": "*", - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" } } diff --git a/packages/playwright-webkit/package.json b/packages/playwright-webkit/package.json index 33a87fd158031..0cb5933a26339 100644 --- a/packages/playwright-webkit/package.json +++ b/packages/playwright-webkit/package.json @@ -1,6 +1,6 @@ { "name": "playwright-webkit", - "version": "1.23.3", + "version": "1.23.4", "description": "A high-level API to automate WebKit", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", @@ -27,6 +27,6 @@ "install": "node install.js" }, "dependencies": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" } } diff --git a/packages/playwright/package.json b/packages/playwright/package.json index 16bfefbd77eee..66d713d6457c2 100644 --- a/packages/playwright/package.json +++ b/packages/playwright/package.json @@ -1,6 +1,6 @@ { "name": "playwright", - "version": "1.23.3", + "version": "1.23.4", "description": "A high-level API to automate web browsers", "repository": "github:Microsoft/playwright", "homepage": "https://playwright.dev", @@ -27,6 +27,6 @@ "install": "node install.js" }, "dependencies": { - "playwright-core": "1.23.3" + "playwright-core": "1.23.4" } } From e40a1349548db08d2f2d0bfbf7643098c0321c47 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 15 Jul 2022 16:50:40 -0700 Subject: [PATCH 2/2] Update docs after running npm run lint --- docs/src/ci.md | 10 +++++----- docs/src/docker.md | 24 ++++++++++++------------ docs/src/release-notes-js.md | 2 +- docs/src/test-snapshots-js.md | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/src/ci.md b/docs/src/ci.md index e3a8c41f031da..8c653ed1af163 100644 --- a/docs/src/ci.md +++ b/docs/src/ci.md @@ -143,7 +143,7 @@ Alternatively, you can use [Command line tools](./cli.md#install-system-dependen pool: vmImage: 'ubuntu-20.04' -container: mcr.microsoft.com/playwright:v1.23.3-focal +container: mcr.microsoft.com/playwright:v1.23.4-focal steps: ... @@ -157,7 +157,7 @@ Running Playwright on CircleCI requires the following steps: ```yml docker: - - image: mcr.microsoft.com/playwright:v1.23.3-focal + - image: mcr.microsoft.com/playwright:v1.23.4-focal environment: NODE_ENV: development # Needed if playwright is in `devDependencies` ``` @@ -179,7 +179,7 @@ to run tests on Jenkins. ```groovy pipeline { - agent { docker { image 'mcr.microsoft.com/playwright:v1.23.3-focal' } } + agent { docker { image 'mcr.microsoft.com/playwright:v1.23.4-focal' } } stages { stage('e2e-tests') { 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)). ```yml -image: mcr.microsoft.com/playwright:v1.23.3-focal +image: mcr.microsoft.com/playwright:v1.23.4-focal ``` ### GitLab CI @@ -209,7 +209,7 @@ stages: tests: stage: test - image: mcr.microsoft.com/playwright:v1.23.3-focal + image: mcr.microsoft.com/playwright:v1.23.4-focal script: ... ``` diff --git a/docs/src/docker.md b/docs/src/docker.md index 07871be9e320f..f9e751ca5511e 100644 --- a/docs/src/docker.md +++ b/docs/src/docker.md @@ -14,19 +14,19 @@ This image is published on [Docker Hub]. ### Pull the image ```bash js -docker pull mcr.microsoft.com/playwright:v1.23.3-focal +docker pull mcr.microsoft.com/playwright:v1.23.4-focal ``` ```bash python -docker pull mcr.microsoft.com/playwright/python:v1.23.3-focal +docker pull mcr.microsoft.com/playwright/python:v1.23.4-focal ``` ```bash csharp -docker pull mcr.microsoft.com/playwright/dotnet:v1.23.3-focal +docker pull mcr.microsoft.com/playwright/dotnet:v1.23.4-focal ``` ```bash java -docker pull mcr.microsoft.com/playwright/java:v1.23.3-focal +docker pull mcr.microsoft.com/playwright/java:v1.23.4-focal ``` ### Run the image @@ -38,19 +38,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. ```bash js -docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.23.3-focal /bin/bash +docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.23.4-focal /bin/bash ``` ```bash python -docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.23.3-focal /bin/bash +docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.23.4-focal /bin/bash ``` ```bash csharp -docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.23.3-focal /bin/bash +docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.23.4-focal /bin/bash ``` ```bash java -docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.23.3-focal /bin/bash +docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.23.4-focal /bin/bash ``` #### Crawling and scraping @@ -58,19 +58,19 @@ docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.23.3-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. ```bash js -docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.23.3-focal /bin/bash +docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.23.4-focal /bin/bash ``` ```bash python -docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.23.3-focal /bin/bash +docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.23.4-focal /bin/bash ``` ```bash csharp -docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.23.3-focal /bin/bash +docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.23.4-focal /bin/bash ``` ```bash java -docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.23.3-focal /bin/bash +docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.23.4-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: diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index 08b29cde8f169..4df3a5c3c8b2e 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -106,7 +106,7 @@ Read more about [component testing with Playwright](./test-components). } }); ``` -* Playwright now runs on Ubuntu 22 amd64 and Ubuntu 22 arm64. We also publish new docker image `mcr.microsoft.com/playwright:v1.23.3-jammy`. +* Playwright now runs on Ubuntu 22 amd64 and Ubuntu 22 arm64. We also publish new docker image `mcr.microsoft.com/playwright:v1.23.4-jammy`. ### ⚠️ Breaking Changes ⚠️ diff --git a/docs/src/test-snapshots-js.md b/docs/src/test-snapshots-js.md index 1c05762696b8c..84c74b2c36881 100644 --- a/docs/src/test-snapshots-js.md +++ b/docs/src/test-snapshots-js.md @@ -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: ```bash -docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.23.3-focal /bin/bash +docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.23.4-focal /bin/bash npm install npx playwright test --update-snapshots ```