|
|
|
@ -63,7 +63,7 @@ module.exports = { |
|
|
|
|
.addFile('renameFile.js', { content: executeRename }) |
|
|
|
|
.executeScript(`remix.exeCurrent()`) |
|
|
|
|
.pause(2000) |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLibrowser/old_contract.sol"]') |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItembrowser/old_contract.sol"]') |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should execute `mkdir` api from file manager external api': function (browser: NightwatchBrowser) { |
|
|
|
@ -71,7 +71,7 @@ module.exports = { |
|
|
|
|
.addFile('mkdirFile.js', { content: executeMkdir }) |
|
|
|
|
.executeScript(`remix.exeCurrent()`) |
|
|
|
|
.pause(2000) |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLibrowser/Test_Folder"]') |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItembrowser/Test_Folder"]') |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should execute `readdir` api from file manager external api': function (browser: NightwatchBrowser) { |
|
|
|
@ -87,7 +87,7 @@ module.exports = { |
|
|
|
|
.addFile('removeFile.js', { content: executeRemove }) |
|
|
|
|
.executeScript(`remix.exeCurrent()`) |
|
|
|
|
.pause(2000) |
|
|
|
|
.waitForElementNotPresent('[data-id="treeViewLibrowser/old_contract.sol"]')
|
|
|
|
|
.waitForElementNotPresent('[data-id="treeViewLitreeViewItembrowser/old_contract.sol"]')
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should execute `remove` api from file manager external api on a folder': function (browser: NightwatchBrowser) { |
|
|
|
@ -95,7 +95,7 @@ module.exports = { |
|
|
|
|
.addFile('test_jsRemoveFolder.js', { content: executeRemoveOnFolder }) |
|
|
|
|
.executeScript('remix.exeCurrent()') |
|
|
|
|
.pause(2000) |
|
|
|
|
.waitForElementNotPresent('*[key="browser/tests"]') |
|
|
|
|
.waitForElementNotPresent('[data-id="treeViewLitreeViewItembrowser/tests"]') |
|
|
|
|
.end() |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|