mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Tweak test again for travis
Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
committed by
Nathan Sobo
parent
7bba3e86b2
commit
511fe1a576
@@ -310,6 +310,8 @@ describe('AtomApplication', function () {
|
||||
fs.symlinkSync(packagePath, path.join(packagesDirPath, 'package-with-directory-provider'))
|
||||
|
||||
const atomApplication = buildAtomApplication()
|
||||
atomApplication.config.set('core.disabledPackages', ['fuzzy-finder'])
|
||||
|
||||
const newRemoteFilePath = 'remote://server:3437/some/directory/path'
|
||||
const window = atomApplication.launch(parseCommandLine([newRemoteFilePath]))
|
||||
await focusWindow(window)
|
||||
@@ -320,10 +322,7 @@ describe('AtomApplication', function () {
|
||||
assert.deepEqual(projectPaths, [newRemoteFilePath])
|
||||
|
||||
await window.saveState()
|
||||
await new Promise((resolve) => {
|
||||
window.browserWindow.once('window:loaded', resolve)
|
||||
window.reload()
|
||||
})
|
||||
await window.reload()
|
||||
|
||||
projectPaths = await evalInWebContents(window.browserWindow.webContents, function (sendBackToMainProcess) {
|
||||
sendBackToMainProcess(atom.project.getPaths())
|
||||
|
||||
Reference in New Issue
Block a user