-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Electron13 #2609
Electron13 #2609
Conversation
Great work! I notice that almost all changes are the same electron options object in all different tests. Maybe it's worth it to extract that to a separate file so it can be reused? |
Codecov Report
@@ Coverage Diff @@
## develop #2609 +/- ##
===========================================
- Coverage 70.64% 70.47% -0.18%
===========================================
Files 16 16
Lines 821 823 +2
===========================================
Hits 580 580
- Misses 241 243 +2
Continue to review full report at Codecov.
|
You mean something like defaultElectronOptions: {
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true,
contextIsolation: false
} in a seperate file and then electronOptions: defaultElectronOptions in every test config? |
Jean, or even better. A default test config that can be extended.
The testConfig method will return the default config (including the electronOptions) and it will extend/overwrite with whatever you add as an argument. Of course this can be a separate PR. But it might save some work in the future and makes PR's like these much cleaner. |
o.k., will try this in a new PR. |
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.
LGTM!
Managed to get the e2e tests running with electron v13 and spectron v15.
Tested new electron version on pi3 and ubuntu desktop.
Related to #2408.