From c1b072de8d55f6b638accb2d634596f67459f02b Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 24 Nov 2024 10:06:47 +0000 Subject: [PATCH] feat(roll): roll to 1.49 Playwright --- .../version-stable-sidebars.json | 12 ++++++------ .../version-stable-sidebars.json | 10 +++++----- .../version-stable-sidebars.json | 12 ++++++------ python/versioned_docs/version-stable/ci.mdx | 12 ++++++------ python/versioned_docs/version-stable/docker.mdx | 14 +++++++------- .../version-stable-sidebars.json | 12 ++++++------ 6 files changed, 36 insertions(+), 36 deletions(-) diff --git a/dotnet/versioned_sidebars/version-stable-sidebars.json b/dotnet/versioned_sidebars/version-stable-sidebars.json index 6521de8e9b5..7856f02d6b9 100644 --- a/dotnet/versioned_sidebars/version-stable-sidebars.json +++ b/dotnet/versioned_sidebars/version-stable-sidebars.json @@ -47,10 +47,6 @@ "type": "category", "label": "Guides", "items": [ - { - "type": "doc", - "id": "aria-snapshots" - }, { "type": "doc", "id": "input" @@ -141,16 +137,20 @@ }, { "type": "doc", - "id": "pom" + "id": "pages" }, { "type": "doc", - "id": "pages" + "id": "pom" }, { "type": "doc", "id": "screenshots" }, + { + "type": "doc", + "id": "aria-snapshots" + }, { "type": "doc", "id": "codegen" diff --git a/java/versioned_sidebars/version-stable-sidebars.json b/java/versioned_sidebars/version-stable-sidebars.json index b69e6f10786..a8b54de80df 100644 --- a/java/versioned_sidebars/version-stable-sidebars.json +++ b/java/versioned_sidebars/version-stable-sidebars.json @@ -47,10 +47,6 @@ "type": "category", "label": "Guides", "items": [ - { - "type": "doc", - "id": "aria-snapshots" - }, { "type": "doc", "id": "accessibility-testing" @@ -147,6 +143,10 @@ "type": "doc", "id": "other-locators" }, + { + "type": "doc", + "id": "pages" + }, { "type": "doc", "id": "pom" @@ -157,7 +157,7 @@ }, { "type": "doc", - "id": "pages" + "id": "aria-snapshots" }, { "type": "doc", diff --git a/nodejs/versioned_sidebars/version-stable-sidebars.json b/nodejs/versioned_sidebars/version-stable-sidebars.json index b17e825102a..dffff19410a 100644 --- a/nodejs/versioned_sidebars/version-stable-sidebars.json +++ b/nodejs/versioned_sidebars/version-stable-sidebars.json @@ -126,10 +126,6 @@ "type": "doc", "id": "library" }, - { - "type": "doc", - "id": "aria-snapshots" - }, { "type": "doc", "id": "accessibility-testing" @@ -236,16 +232,20 @@ }, { "type": "doc", - "id": "pom" + "id": "pages" }, { "type": "doc", - "id": "pages" + "id": "pom" }, { "type": "doc", "id": "screenshots" }, + { + "type": "doc", + "id": "aria-snapshots" + }, { "type": "doc", "id": "test-snapshots" diff --git a/python/versioned_docs/version-stable/ci.mdx b/python/versioned_docs/version-stable/ci.mdx index b0c31212630..cdd06f5d885 100644 --- a/python/versioned_docs/version-stable/ci.mdx +++ b/python/versioned_docs/version-stable/ci.mdx @@ -83,7 +83,7 @@ jobs: name: 'Playwright Tests' runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright/python:v1.48.0-noble + image: mcr.microsoft.com/playwright/python:v1.49.0-noble options: --user 1001 steps: - uses: actions/checkout@v4 @@ -178,7 +178,7 @@ trigger: pool: vmImage: ubuntu-latest -container: mcr.microsoft.com/playwright/python:v1.48.0-noble +container: mcr.microsoft.com/playwright/python:v1.49.0-noble steps: - task: UsePythonVersion@0 @@ -202,7 +202,7 @@ Running Playwright on CircleCI is very similar to running on GitHub Actions. In executors: pw-noble-development: docker: - - image: mcr.microsoft.com/playwright/python:v1.48.0-noble + - image: mcr.microsoft.com/playwright/python:v1.49.0-noble ``` 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. @@ -213,7 +213,7 @@ Jenkins supports Docker agents for pipelines. Use the [Playwright Docker image]( ```groovy pipeline { - agent { docker { image 'mcr.microsoft.com/playwright/python:v1.48.0-noble' } } + agent { docker { image 'mcr.microsoft.com/playwright/python:v1.49.0-noble' } } stages { stage('e2e-tests') { steps { @@ -230,7 +230,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/python:v1.48.0-noble +image: mcr.microsoft.com/playwright/python:v1.49.0-noble ``` ### GitLab CI @@ -243,7 +243,7 @@ stages: tests: stage: test - image: mcr.microsoft.com/playwright/python:v1.48.0-noble + image: mcr.microsoft.com/playwright/python:v1.49.0-noble script: ... ``` diff --git a/python/versioned_docs/version-stable/docker.mdx b/python/versioned_docs/version-stable/docker.mdx index 9d1f23f6a70..18a8f3a55d8 100644 --- a/python/versioned_docs/version-stable/docker.mdx +++ b/python/versioned_docs/version-stable/docker.mdx @@ -22,7 +22,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/python:v1.48.0-noble +docker pull mcr.microsoft.com/playwright/python:v1.49.0-noble ``` ### Run the image @@ -34,7 +34,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/python:v1.48.0-noble /bin/bash +docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.49.0-noble /bin/bash ``` #### Crawling and scraping @@ -42,7 +42,7 @@ docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.48.0-noble 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/python:v1.48.0-noble /bin/bash +docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.49.0-noble /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: @@ -75,9 +75,9 @@ See our [Continuous Integration guides](./ci.mdx) for sample configs. See [all available image tags]. We currently publish images with the following tags: -- `:v1.48.0` - Playwright v1.48.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat). -- `:v1.48.0-noble` - Playwright v1.48.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat). -- `:v1.48.0-jammy` - Playwright v1.48.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish). +- `:v1.49.0` - Playwright v1.49.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat). +- `:v1.49.0-noble` - Playwright v1.49.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat). +- `:v1.49.0-jammy` - Playwright v1.49.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish). :::note @@ -101,7 +101,7 @@ To run Playwright inside Docker, you need to have Python, [Playwright browsers]( ```Dockerfile FROM python:3.12-bookworm -RUN pip install playwright==@1.48.0 && \ +RUN pip install playwright==@1.49.0 && \ playwright install --with-deps ``` diff --git a/python/versioned_sidebars/version-stable-sidebars.json b/python/versioned_sidebars/version-stable-sidebars.json index 0543e93f437..8509a82a991 100644 --- a/python/versioned_sidebars/version-stable-sidebars.json +++ b/python/versioned_sidebars/version-stable-sidebars.json @@ -47,10 +47,6 @@ "type": "category", "label": "Guides", "items": [ - { - "type": "doc", - "id": "aria-snapshots" - }, { "type": "doc", "id": "input" @@ -145,16 +141,20 @@ }, { "type": "doc", - "id": "pom" + "id": "pages" }, { "type": "doc", - "id": "pages" + "id": "pom" }, { "type": "doc", "id": "screenshots" }, + { + "type": "doc", + "id": "aria-snapshots" + }, { "type": "doc", "id": "codegen"