[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

@@ -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 () => {

View File

@@ -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 () => {

View File

@@ -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 () => {

View File

@@ -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 () => {

View File

@@ -27,6 +27,7 @@ describe('menu/menu', function desc() {
if (this.app) {
await this.app.close();
}
await env.clearElectronInstances();
});
if (process.platform !== 'darwin') {

View File

@@ -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 () => {

View File

@@ -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 () => {