mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-09 23:44:24 +03:00
???
This commit is contained in:
parent
05233b9857
commit
cdfd37d4c5
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user