E2E omnibus fixes (#2249)

* Add environment variable for E2E test server

* Fix auto updater test

* Kill macOS processes after test as well

* No dot

* Just do it for all of them

* Force focus of main window on tests

* Fix a focus issue, try win.show() instead

* Another windows hack

* Oops can't spell

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Devin Binnie
2022-09-12 10:43:19 -04:00
committed by GitHub
parent 7e414bdf5a
commit 2837b764bd
4 changed files with 28 additions and 9 deletions

View File

@@ -105,7 +105,7 @@ describe('popup', function desc() {
const githubLink = await firstServer.waitForSelector('a.theme.markdown__link:has-text("GitHub account")');
githubLink.click();
const popupWindow = await this.app.waitForEvent('window');
popupWindow.focus();
await popupWindow.bringToFront();
const currentURL = popupWindow.url();
// Try and go back

View File

@@ -5,6 +5,7 @@
'use strict';
const fs = require('fs');
const path = require('path');
const {SHOW_SETTINGS_WINDOW} = require('../../src/common/communication');
@@ -20,6 +21,7 @@ describe('Settings', function desc() {
env.createTestUserDataDir();
env.cleanTestConfig();
fs.writeFileSync(env.configFilePath, JSON.stringify(config));
fs.writeFileSync(env.appUpdatePath, '');
await asyncSleep(1000);
this.app = await env.getApp();
});