Open remss opened 8 years ago
I'm running into this as well. Now I'm very very new to Spectron, but it's unexpected behavior.
after(function (done) {
done();
console.log("Fin")
return app.stop();
});
I have the same problem. Resolved it by doing return app.client.url('about:blank').then(() => app.stop());
thanks for @mbaer3000 .your solution works for me now I‘m looking for a headless solution that would not see a client
I am still having this. My tests are passing and the window stays open. I tried the workaround this did not do the trick.
afterEach(() => {
if (app && app.isRunning()) {
return app.client.url('about:blank').then(() => app.stop());
}
});
If the electron app has a beforeunload that cancel the app quit like this
Then try to close the spectron app
The output is "stopped" even if app is still running. The expected behaviour is the this.app.stop() promise rejects
Electron 1.1.1 Spectron 3.1.1