[MM-45448] Force electron processes to close after every test on Windows (#2207)
This commit is contained in:
@@ -35,6 +35,7 @@ describe('Add Server Modal', function desc() {
|
||||
if (this.app) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
let newServerView;
|
||||
|
@@ -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 () => {
|
||||
|
@@ -34,6 +34,7 @@ describe('EditServerModal', function desc() {
|
||||
if (this.app) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
let editServerView;
|
||||
|
@@ -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 () => {
|
||||
|
@@ -38,6 +38,7 @@ describe('LongServerName', function desc() {
|
||||
if (this.app) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
let newServerView;
|
||||
|
@@ -37,6 +37,7 @@ describe('RemoveServerModal', function desc() {
|
||||
if (this.app) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
let removeServerView;
|
||||
|
Reference in New Issue
Block a user