|
|
|
@ -231,10 +231,10 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
'Should get current files #group7': async function (browser: NightwatchBrowser) { |
|
|
|
|
await clickAndCheckLog(browser, 'fileManager:readdir', { |
|
|
|
|
'compiler_config.json': { isDirectory: false }, |
|
|
|
|
contracts: { isDirectory: true }, |
|
|
|
|
scripts: { isDirectory: true }, |
|
|
|
|
tests: { isDirectory: true }, |
|
|
|
|
'compiler_config.json': { isDirectory: false }, |
|
|
|
|
'README.txt': { isDirectory: false } |
|
|
|
|
}, null, '/') |
|
|
|
|
}, |
|
|
|
@ -293,7 +293,13 @@ module.exports = { |
|
|
|
|
'Should create workspace #group2': async function (browser: NightwatchBrowser) { |
|
|
|
|
await clickAndCheckLog(browser, 'filePanel:createWorkspace', null, null, 'testspace') |
|
|
|
|
await clickAndCheckLog(browser, 'filePanel:getCurrentWorkspace', { name: 'testspace', isLocalhost: false, absolutePath: '.workspaces/testspace' }, null, null) |
|
|
|
|
await clickAndCheckLog(browser, 'fileManager:readdir', { contracts: { isDirectory: true }, scripts: { isDirectory: true }, tests: { isDirectory: true }, 'compiler_config.json': { isDirectory: false }, 'README.txt': { isDirectory: false } }, null, null) |
|
|
|
|
await clickAndCheckLog(browser, 'fileManager:readdir', { |
|
|
|
|
'compiler_config.json': { isDirectory: false }, |
|
|
|
|
contracts: { isDirectory: true }, |
|
|
|
|
scripts: { isDirectory: true }, |
|
|
|
|
tests: { isDirectory: true }, |
|
|
|
|
'README.txt': { isDirectory: false }
|
|
|
|
|
}, null, null) |
|
|
|
|
}, |
|
|
|
|
'Should get all workspaces #group2': async function (browser: NightwatchBrowser) { |
|
|
|
|
await clickAndCheckLog(browser, 'filePanel:getWorkspaces', ['default_workspace', 'emptyworkspace', 'testspace'], null, null) |
|
|
|
|