Add showTrayIcon test for Mac and Linux

This commit is contained in:
Yuya Ochiai
2018-02-26 22:16:59 +09:00
parent 6749152d7c
commit 12f240d196
2 changed files with 28 additions and 0 deletions

View File

@@ -70,6 +70,13 @@ module.exports = {
return requireResult.value;
});
});
client.addCommand('waitForAppOptionsAutoSaved', function async() {
const ID_APP_OPTIONS_SAVE_INDICATOR = '#appOptionsSaveIndicator';
const TIMEOUT = 5000;
return this.
waitForVisible(ID_APP_OPTIONS_SAVE_INDICATOR, TIMEOUT).
waitForVisible(ID_APP_OPTIONS_SAVE_INDICATOR, TIMEOUT, true);
});
},
// execute the test only when `condition` is true