Wait for project folder to be added in main process tests

This commit is contained in:
Max Brunsfeld 2016-09-21 11:37:37 -07:00
parent 3039024d17
commit b88fa984cf

View File

@ -188,6 +188,8 @@ describe('AtomApplication', function () {
reusedWindow = atomApplication.launch(parseCommandLine([dirBPath, '-a']))
assert.equal(reusedWindow, window1)
assert.deepEqual(atomApplication.windows, [window1])
await conditionPromise(async () => (await getTreeViewRootDirectories(reusedWindow)).length === 3)
assert.deepEqual(await getTreeViewRootDirectories(window1), [dirAPath, dirCPath, dirBPath])
})