Test for restoring windows over directories and files

This commit is contained in:
Ash Wilson
2019-04-19 18:07:18 -04:00
parent c719dc8aa2
commit ab490a064a

View File

@@ -159,11 +159,16 @@ describe('AtomApplication', function () {
await scenario.assert('[b _] [c _]')
})
it('restores windows when launched with paths to open', async function () {
it('restores windows when launched with a project path to open', async function () {
await scenario.launch({app, pathsToOpen: ['a']})
await scenario.assert('[a _] [b _] [c _]')
})
it('restores windows when launched with a file path to open', async function () {
await scenario.launch({app, pathsToOpen: ['a/1.md']})
await scenario.assert('[b 1.md] [c _]')
})
it('collapses new paths into restored windows when appropriate', async function () {
await scenario.launch({app, pathsToOpen: ['b/2.md']})
await scenario.assert('[b 2.md] [c _]')