-
Notifications
You must be signed in to change notification settings - Fork 4k
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
test: isolate Electron userDataDir per-test #35235
Conversation
tests/electron/electron-app.js
Outdated
const { app, protocol } = require('electron'); | ||
const path = require('path'); | ||
|
||
assert(process.argv.length > 0, 'No arguments provided. First argument needs to be a userDataDir.'); | ||
app.setPath('appData', process.argv[2]); |
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.
Make sure we don't use it outside the tests that pass the dir.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "tests 1"6 flaky38782 passed, 808 skipped Merge workflow run. |
Test results for "tests others"12 fatal errors, not part of any test 21739 passed, 512 skipped Merge workflow run. |
Test results for "tests 2"1 fatal errors, not part of any test 106 flaky236484 passed, 9285 skipped Merge workflow run. |
Taken from here. Before this patch Electron has shared the cookies across different test-runs.