[MM-45448] Force electron processes to close after every test on Windows (#2207)
This commit is contained in:
@@ -24,6 +24,7 @@ describe('menu_bar/dropdown', function desc() {
|
||||
if (this.app) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
it('MM-T4405 should set name of menu item from config file', async () => {
|
||||
|
@@ -28,6 +28,7 @@ describe('edit_menu', function desc() {
|
||||
if (this.app) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
it('MM-T807 Undo in the Menu Bar', async () => {
|
||||
|
@@ -30,6 +30,7 @@ describe('file_menu/dropdown', function desc() {
|
||||
if (this.app && skipAfterEach === false) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
it('MM-T1313 Open Settings modal using keyboard shortcuts', async () => {
|
||||
|
@@ -26,6 +26,7 @@ describe('history_menu', function desc() {
|
||||
if (this.app) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
it('Click back and forward from history', async () => {
|
||||
|
@@ -27,6 +27,7 @@ describe('menu/menu', function desc() {
|
||||
if (this.app) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
if (process.platform !== 'darwin') {
|
||||
|
@@ -52,6 +52,7 @@ describe('menu/view', function desc() {
|
||||
if (this.app) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
it('MM-T813 Control+F should focus the search bar in Mattermost', async () => {
|
||||
|
@@ -57,6 +57,7 @@ describe('Menu/window_menu', function desc() {
|
||||
if (this.app) {
|
||||
await this.app.close();
|
||||
}
|
||||
await env.clearElectronInstances();
|
||||
});
|
||||
|
||||
it('MM-T826 should switch to servers when keyboard shortcuts are pressed', async () => {
|
||||
|
Reference in New Issue
Block a user