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
fix: Prepare CI to properly run Electron on ubuntu-latest (24.04) (#34238)
Adam Gastineau01ba52890471
diff --git a/.github/workflows/tests_others.yml b/.github/workflows/tests_others.ymlindex 66728e720f..ed18e1541c 100644--- a/.github/workflows/tests_others.yml+++ b/.github/workflows/tests_others.yml@@ -147,6 +147,13 @@ jobs:runs-on: ${{ matrix.os }}steps:- uses: actions/checkout@v4+ - name: Setup Ubuntu Binary Installation # TODO: Remove when https://github.com/electron/electron/issues/42510 is fixed+ if: ${{ runner.os == 'Linux' }}+ run: |+ if grep -q "Ubuntu 24" /etc/os-release; then+ sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0+ fi+ shell: bash- uses: ./.github/actions/run-testwith:browsers-to-install: chromiumdiff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.ymlindex 02847957c4..b8ec84ee56 100644--- a/.github/workflows/tests_primary.yml+++ b/.github/workflows/tests_primary.yml@@ -215,6 +215,13 @@ jobs:- uses: actions/checkout@v4- run: npm install -g yarn@1- run: npm install -g pnpm@8+ - name: Setup Ubuntu Binary Installation # TODO: Remove when https://github.com/electron/electron/issues/42510 is fixed+ if: ${{ runner.os == 'Linux' }}+ run: |+ if grep -q "Ubuntu 24" /etc/os-release; then+ sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0+ fi+ shell: bash- uses: ./.github/actions/run-testwith:command: npm run itestdiff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.ymlindex 5afd2f5491..5bf017453d 100644--- a/.github/workflows/tests_secondary.yml+++ b/.github/workflows/tests_secondary.yml@@ -107,6 +107,13 @@ jobs:- uses: actions/checkout@v4- run: npm install -g yarn@1- run: npm install -g pnpm@8+ - name: Setup Ubuntu Binary Installation # TODO: Remove when https://github.com/electron/electron/issues/42510 is fixed+ if: ${{ runner.os == 'Linux' }}+ run: |+ if grep -q "Ubuntu 24" /etc/os-release; then+ sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0+ fi+ shell: bash- uses: ./.github/actions/run-testwith:node-version: ${{ matrix.node_version }}