diff --git a/nodejs/versioned_docs/version-stable/ci.mdx b/nodejs/versioned_docs/version-stable/ci.mdx index 77d08f9d949..610196bda46 100644 --- a/nodejs/versioned_docs/version-stable/ci.mdx +++ b/nodejs/versioned_docs/version-stable/ci.mdx @@ -131,7 +131,7 @@ jobs: name: 'Playwright Tests' runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.35.1-jammy + image: mcr.microsoft.com/playwright:v1.36.0-jammy steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -159,7 +159,7 @@ jobs: name: 'Playwright Tests - ${{ matrix.project }} - Shard ${{ matrix.shardIndex }} of ${{ matrix.shardTotal }}' runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.35.1-jammy + image: mcr.microsoft.com/playwright:v1.36.0-jammy strategy: fail-fast: false matrix: @@ -365,7 +365,7 @@ trigger: pool: vmImage: ubuntu-latest -container: mcr.microsoft.com/playwright:v1.35.1-jammy +container: mcr.microsoft.com/playwright:v1.36.0-jammy steps: - task: NodeTool@0 @@ -387,7 +387,7 @@ Running Playwright on CircleCI is very similar to running on GitHub Actions. In executors: pw-jammy-development: docker: - - image: mcr.microsoft.com/playwright:v1.35.1-jammy + - image: mcr.microsoft.com/playwright:v1.36.0-jammy ``` Note: When using the docker agent definition, you are specifying the resource class of where playwright runs to the 'medium' tier [here](https://circleci.com/docs/configuration-reference?#docker-execution-environment). The default behavior of Playwright is to set the number of workers to the detected core count (2 in the case of the medium tier). Overriding the number of workers to greater than this number will cause unnecessary timeouts and failures. @@ -410,7 +410,7 @@ Jenkins supports Docker agents for pipelines. Use the [Playwright Docker image]( ```groovy pipeline { - agent { docker { image 'mcr.microsoft.com/playwright:v1.35.1-jammy' } } + agent { docker { image 'mcr.microsoft.com/playwright:v1.36.0-jammy' } } stages { stage('e2e-tests') { steps { @@ -427,7 +427,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.mdx)). ```yml -image: mcr.microsoft.com/playwright:v1.35.1-jammy +image: mcr.microsoft.com/playwright:v1.36.0-jammy ``` ### GitLab CI @@ -440,7 +440,7 @@ stages: tests: stage: test - image: mcr.microsoft.com/playwright:v1.35.1-jammy + image: mcr.microsoft.com/playwright:v1.36.0-jammy script: ... ``` @@ -455,7 +455,7 @@ stages: tests: stage: test - image: mcr.microsoft.com/playwright:v1.35.1-jammy + image: mcr.microsoft.com/playwright:v1.36.0-jammy parallel: 7 script: - npm ci @@ -470,7 +470,7 @@ stages: tests: stage: test - image: mcr.microsoft.com/playwright:v1.35.1-jammy + image: mcr.microsoft.com/playwright:v1.36.0-jammy parallel: matrix: - PROJECT: ['chromium', 'webkit'] diff --git a/nodejs/versioned_docs/version-stable/docker.mdx b/nodejs/versioned_docs/version-stable/docker.mdx index 0218286f89b..c8512bb4ab3 100644 --- a/nodejs/versioned_docs/version-stable/docker.mdx +++ b/nodejs/versioned_docs/version-stable/docker.mdx @@ -23,7 +23,7 @@ This Docker image is intended to be used for testing and development purposes on ### Pull the image ```bash -docker pull mcr.microsoft.com/playwright:v1.35.1-jammy +docker pull mcr.microsoft.com/playwright:v1.36.0-jammy ``` ### Run the image @@ -35,7 +35,7 @@ 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 -docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.35.1-jammy /bin/bash +docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.36.0-jammy /bin/bash ``` #### Crawling and scraping @@ -43,7 +43,7 @@ docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.35.1-jammy /bin/b 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 -docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.35.1-jammy /bin/bash +docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.36.0-jammy /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/nodejs/versioned_docs/version-stable/test-snapshots.mdx b/nodejs/versioned_docs/version-stable/test-snapshots.mdx index 05e57dc2c3e..b0a0899d600 100644 --- a/nodejs/versioned_docs/version-stable/test-snapshots.mdx +++ b/nodejs/versioned_docs/version-stable/test-snapshots.mdx @@ -46,7 +46,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.35.1-jammy /bin/bash +docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.36.0-jammy /bin/bash npm install npx playwright test --update-snapshots ```