[MM-45448] Force electron processes to close after every test on Windows (#2207)

This commit is contained in:
Devin Binnie
2022-07-25 09:41:19 -04:00
committed by GitHub
parent 40c072981a
commit 821112c038
28 changed files with 118 additions and 339 deletions

View File

@@ -35,6 +35,7 @@ describe('Add Server Modal', function desc() {
if (this.app) {
await this.app.close();
}
await env.clearElectronInstances();
});
let newServerView;

View File

@@ -52,6 +52,7 @@ describe('server_management/drag_and_drop', function desc() {
if (this.app) {
await this.app.close();
}
await env.clearElectronInstances();
});
it('MM-T2634 should be able to drag and drop servers in the dropdown menu', async () => {

View File

@@ -34,6 +34,7 @@ describe('EditServerModal', function desc() {
if (this.app) {
await this.app.close();
}
await env.clearElectronInstances();
});
let editServerView;

View File

@@ -23,6 +23,7 @@ describe('header', function desc() {
// eslint-disable-next-line no-empty
} catch (err) {}
}
await env.clearElectronInstances();
});
it('MM-T2637 Double-Clicking on the header should minimize/maximize the app', async () => {

View File

@@ -38,6 +38,7 @@ describe('LongServerName', function desc() {
if (this.app) {
await this.app.close();
}
await env.clearElectronInstances();
});
let newServerView;

View File

@@ -37,6 +37,7 @@ describe('RemoveServerModal', function desc() {
if (this.app) {
await this.app.close();
}
await env.clearElectronInstances();
});
let removeServerView;