fix/ e2e tests with Spectron
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user