[MM-22102] upgrade to electron 7 (#1268)

* fix errors

* upgrade to electron 7

* getsavepath is deprecated

* fix typo

* disable messaging from 'null'

* replace getname to its property

* deprecated zoomlevel

* deprecated setbadgecount

* isdarkmode deprecated

* it's a property, not a function

* fix error message

* fix test

* fix test on linux
This commit is contained in:
Guillermo Vayá
2020-05-09 00:29:02 +02:00
committed by GitHub
parent 61095a2fcd
commit c2102bb257
20 changed files with 371 additions and 169 deletions

View File

@@ -57,7 +57,7 @@ module.exports = {
// enable this if chromedriver hangs to see logs
// chromeDriverLogPath: '../chromedriverlog.txt',
};
if (process.platform === 'darwin') {
if (process.platform === 'darwin' || process.platform === 'linux') {
// on a mac, debbuging port might conflict with other apps
// this changes the default debugging port so chromedriver can run without issues.
options.chromeDriverArgs.push('remote-debugging-port=9222');

View File

@@ -78,6 +78,7 @@ describe('browser/settings.html', function desc() {
click('#addNewServer').
waitForVisible('#newServerModal').
setValue('#teamNameInput', 'TestTeam').
pause(100).
setValue('#teamUrlInput', 'http://example.org').
click('#saveNewServerModal').
waitForVisible('#newServerModal', true).