-
Notifications
You must be signed in to change notification settings - Fork 932
E2E: Skip the notification prompt when NODE_ENV= test #3512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| name: Electron Playwright Tests | ||
|
|
||
| on: | ||
| pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saturninoabril
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @yasserfaraazkhan!
| // For certain permission types, we need to confirm with the user | ||
| if (authorizablePermissionTypes.includes(permission) || isExternalFullscreen) { | ||
| // In test mode, do not show dialog, always allow | ||
| if (process.env.NODE_ENV === 'test') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@enzowritescode Are we okay with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@enzowritescode double checking with you on this code
- Remove JS code from yml workflow files
|
@yasserfaraazkhan Where are we on the changes here? |
@devinbinnie I've run the tests. Can you check the reports? |
This reverts commit 6f7f0a5.

This pull request introduces significant improvements to the Electron end-to-end (E2E) testing infrastructure, focusing on increased reliability, better cross-platform support (especially for macOS-15), and improved test stability. The changes span CI workflow enhancements, E2E environment robustness, dependency updates, and targeted test reliability fixes.
CI Workflow Improvements:
.github/workflows/e2e-functional.ymlto consolidate and generalize status updates for all platforms, usingactions/github-scriptto dynamically update commit statuses for each OS, and removed redundant jobs for individual platforms. [1] [2].github/workflows/e2e-functional-template.ymlby adding explicit cleanup of Electron system folders, ensuring Electron.app is properly configured and signed on macOS-15, and improving build and test steps for reliability.NODE_ENV: "test"in workflow environments for consistency across runs.E2E Environment Robustness:
e2e/modules/environment.jsto remove Electron single-instance lock files on macOS, preventing launch failures, and switched to more robust directory removal methods. [1] [2] [3]Dependency Updates:
e2e/package.json, including@aws-sdk,axios,chai,fast-xml-parser,mochawesome,nan,node-abi,playwright, andmochawesome-report-generator, to address security, compatibility, and feature improvements.Test Stability and Reliability:
deeplink.test.jsandfocus.test.jsto handle asynchronous server map population and slow initialization, especially on Windows and macOS, reducing flaky test failures. [1] [2] [3]Other Notable Changes:
These changes collectively make the E2E testing pipeline more robust, especially on macOS-15, and reduce sources of test flakiness across platforms.