mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Another try to fix tests on Windows.
Wait for ipc.
This commit is contained in:
@@ -66,10 +66,13 @@ describe('AtomApplication', function () {
|
||||
|
||||
atomApplication.saveState = mockSaveState
|
||||
await evalInWebContents(window.browserWindow.webContents, addProjectPathFn(dirA))
|
||||
await conditionPromise(() => cnt === 1)
|
||||
assert.equal(cnt, 1)
|
||||
await evalInWebContents(window.browserWindow.webContents, addProjectPathFn(dirB))
|
||||
await conditionPromise(() => cnt === 2)
|
||||
assert.equal(cnt, 2)
|
||||
await evalInWebContents(window.browserWindow.webContents, removeProjectPathFn(dirA))
|
||||
await conditionPromise(() => cnt === 3)
|
||||
assert.equal(cnt, 3)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user