Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops(electron): suppress macOS reopen windows prompt in tests (#41344)

Dmitry Gozman3c1544659513
diff --git a/.github/workflows/tests_others.yml b/.github/workflows/tests_others.yml
index 10dc215200..f800b18df8 100644
--- a/.github/workflows/tests_others.yml
+++ b/.github/workflows/tests_others.yml
@@ -89,6 +89,11 @@ jobs:
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
fi
shell: bash
+ # Prevent stalling when macOS decides to show the reopen windows prompt after killing enough Electron processes.
+ - name: Turn off the reopen windows prompt on macOS
+ if: ${{ matrix.os == 'macos-latest' }}
+ run: defaults write com.github.Electron ApplePersistenceIgnoreState YES
+ shell: bash
- uses: ./.github/actions/run-test
with:
browsers-to-install: chromium