Merge pull request #19124 from atom/fix-application-test

Fix atom-application tests
This commit is contained in:
Rafael Oleza
2019-04-09 14:45:23 +02:00
committed by GitHub

View File

@@ -663,6 +663,10 @@ describe('AtomApplication', function () {
parseCommandLine([path.join(makeTempDir('a'), 'file-a')])
)
await focusWindow(window)
// Choosing "Don't save"
mockElectronShowMessageBox({ response: 2 })
window.close()
await window.closedPromise
await atomApplication.lastBeforeQuitPromise
@@ -675,6 +679,10 @@ describe('AtomApplication', function () {
parseCommandLine([path.join(makeTempDir('a'), 'file-a')])
)
await focusWindow(window)
// Choosing "Don't save"
mockElectronShowMessageBox({ response: 2 })
window.close()
await window.closedPromise
await timeoutPromise(1000)