mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-19 23:17:16 +03:00
Ah heck, more async
This commit is contained in:
parent
8fcd97ae15
commit
7e2a23b797
@ -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)
|
||||
|
@ -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!')
|
||||
|
Loading…
Reference in New Issue
Block a user