Skip to content

Commit

Permalink
Wait until the editor is ready on application test
Browse files Browse the repository at this point in the history
  • Loading branch information
rafeca committed Apr 9, 2019
1 parent d6f06f6 commit 6b61f14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/main-process/atom-application.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ describe('AtomApplication', function () {
parseCommandLine([path.join(makeTempDir('a'), 'file-a')])
)
await focusWindow(window)
await emitterEventPromise(window, 'window:locations-opened')

// Choosing "Don't save"
mockElectronShowMessageBox({ response: 2 })
Expand All @@ -679,6 +680,7 @@ describe('AtomApplication', function () {
parseCommandLine([path.join(makeTempDir('a'), 'file-a')])
)
await focusWindow(window)
await emitterEventPromise(window, 'window:locations-opened')

// Choosing "Don't save"
mockElectronShowMessageBox({ response: 2 })
Expand Down

0 comments on commit 6b61f14

Please sign in to comment.