-
Notifications
You must be signed in to change notification settings - Fork 229
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
userData directory on windows 7 while running tests #382
Comments
Forgot to mention that the app is built as PORTABLE |
Some additional info, I'm using app.getPath('userData') to save the config file. |
OK, I solved my issue, thanks to this post - https://hovancik.net/blog/2019/05/30/you-can-specify-chromedriver-s-user-data-directory-for-electron-app-s-tests/
I've also tried to use app.setPath(userData, my/path/from/env/var) as advised here - #202 (comment) |
I have an issue with the app working directory on windows 7.
If I launch the built app it creates an "appName" directory in C:\Users\User\AppData\Roaming with a bunch of files, including my custom initialization JSON file.
But if the same app is launched by Spectron in tests it creates "appName" only with empty "log" directory without any files.
Is there any option or workaround to make the launch of the app from tests the same way as manual clicking on exe?
The text was updated successfully, but these errors were encountered: