fix/ e2e tests with Spectron

This commit is contained in:
Maxime GRIS
2020-08-12 22:21:04 +02:00
parent 84598a5146
commit 472afc8675
3 changed files with 16 additions and 16 deletions

View File

@@ -26,16 +26,13 @@ export default function setup(): void {
args: [path.join(__dirname, '..')],
webdriverOptions: {}
});
await this.app.start();
const browser = this.app.client;
await browser.waitUntilWindowLoaded();
browser.timeouts('script', 15000);
await this.app.start();
});
afterEach(function () {
afterEach(async function () {
if (this.app && this.app.isRunning()) {
return this.app.stop();
await this.app.stop();
}
});
}