This commit is contained in:
Winston Liu 2019-05-24 13:45:17 -04:00
parent 05233b9857
commit cdfd37d4c5
No known key found for this signature in database
GPG Key ID: 76A2C5B5B8910B77

View File

@ -39,7 +39,7 @@ const chromeDriverDown = done => {
const buildAtomClient = async (args, env) => {
userDataDir = temp.mkdirSync('atom-user-data-dir')
console.log('awaiting webdriverio')
console.log('>>> Waiting for webdriverio')
let client
try {
client = await webdriverio.remote({
@ -64,6 +64,8 @@ const buildAtomClient = async (args, env) => {
console.log(error)
}
console.log('>>> Building client')
return client.addCommand('waitForWindowCount', async function (count, timeout) {
await this.waitUntil(() => this.getWindowHandles().length === count, timeout)
return this.getWindowHandles()
@ -113,6 +115,7 @@ module.exports = function(args, env, fn) {
waitsFor('webdriver to start', chromeDriverUp, 15000)
waitsFor('tests to run', async done => {
console.log('>>> Waiting for Atom client')
const client = await buildAtomClient(args, env)
const finish = once(async () => {