mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Merge pull request #19124 from atom/fix-application-test
Fix atom-application tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user