Ah heck, more async

This commit is contained in:
Winston Liu 2019-05-25 15:42:27 -04:00
parent 8fcd97ae15
commit 7e2a23b797
No known key found for this signature in database
GPG Key ID: 76A2C5B5B8910B77
2 changed files with 11 additions and 6 deletions

View File

@ -155,7 +155,12 @@ Logs:\n${chromedriverLogs.join('\n')}\
}
console.log('>>> Waiting for test to run')
await fn(client)
try {
await fn(client)
} catch (error) {
console.log('!!!!!!!!!')
console.log(error)
}
finish()
}
, 30000)

View File

@ -46,12 +46,12 @@ fdescribe('Smoke Test', () => {
console.log('>>> Waiting for there to be one pane item')
await client.waitForPaneItemCount(1, 1000)
textEditorElement.click()
console.log('>>> Waiting to click text editor')
await textEditorElement.click()
console.log('>>> Waiting for active element to be atom-text-editor')
await client.waitUntil(function () {
return this.execute(() => document.activeElement.closest('atom-text-editor'))
}, 5000)
console.log('>>> Waiting for closest element')
const closestElement = await client.execute(() => document.activeElement.closest('atom-text-editor'))
expect(closestElement).not.toBeNull()
console.log('>>> Waiting for text to be inserted')
await client.keys('Hello!')