app.quit() is not noticed
See original GitHub issueTesting if my app is quitting correctly 😄
After app.quit
t.context.app.isRunning()
still reports true
.
https://github.com/electron/spectron/blob/aaf7b6964ed32f43c0955b0cb1af5eeb99938db0/lib/application.js#L86
t.context.app.stop()
will fail with Error: chrome not reachable
.
Manually doing t.context.app.running = false;
fixes it.
Not sure if this should be handled but maybe a note in the readme would be useful. I am leaving it to your judgment 😉
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:6 (1 by maintainers)
Top Results From Across the Web
app.quit() is not noticed · Issue #131 - GitHub
I am having the same problem. I have some tests that are checking to make sure the app quits when all windows have...
Read more >is it bad practice to use app.quit() to close all open windows in ...
Second, you ask about using the app.quit() on the 'close' event on the mainWindow ("My question is whether or not this is a...
Read more >Re: Application.quitting not getting called - Oculus Forum
When we test the logic in the editor, it works just fine. However, on device the code does not get called. I have...
Read more >icons stay in dock after app quit - Apple Support Communities
I just upgraded to macOS 10.14 (Mojave) and noticed that now, once I am finished using an app and quit it, its icon...
Read more >app | Electron
quit() , Electron will first try to close all the windows and then emit the will-quit event, and in this case the window-all-closed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
is there any new solution for this problem. I can not get a test working, to check if the application has
quit()
Having the same issue and seems
app.stop()
orapp.quit()
does not close the app at all 😦