Skip to content

Commit

Permalink
Merge pull request atom#19126 from atom/wait-on-app-tests
Browse files Browse the repository at this point in the history
Wait until the editor is ready on application test
  • Loading branch information
rafeca authored Apr 10, 2019
2 parents d6f06f6 + 6b61f14 commit b50a570
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 b50a570

Please sign in to comment.