|
|
@ -62,11 +62,19 @@ module.exports = { |
|
|
|
.addFile('renameFile.js', { content: executeRename }) |
|
|
|
.addFile('renameFile.js', { content: executeRename }) |
|
|
|
.executeScript(`remix.exeCurrent()`) |
|
|
|
.executeScript(`remix.exeCurrent()`) |
|
|
|
.pause(2000) |
|
|
|
.pause(2000) |
|
|
|
.pause(100000) |
|
|
|
.waitForElementPresent('[data-id="treeViewLibrowser/old_contract.sol"]') |
|
|
|
// .journalLastChildIncludes('pragma solidity >=0.2.0 <0.7.0;')
|
|
|
|
.end() |
|
|
|
// .end()
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 'Should execute `rename` api from file manager external api': function (browser) {
|
|
|
|
|
|
|
|
// browser
|
|
|
|
|
|
|
|
// .addFile('renameFile.js', { content: executeRename })
|
|
|
|
|
|
|
|
// .executeScript(`remix.exeCurrent()`)
|
|
|
|
|
|
|
|
// .pause(2000)
|
|
|
|
|
|
|
|
// .waitForElementPresent('[data-id="treeViewLibrowser/new_contract.sol"]')
|
|
|
|
|
|
|
|
// .end()
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
tearDown: sauce |
|
|
|
tearDown: sauce |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -136,7 +144,7 @@ const executeRename = ` |
|
|
|
const run = async () => { |
|
|
|
const run = async () => { |
|
|
|
const result = await remix.call('fileManager', 'rename', 'browser/new_contract.sol', 'browser/old_contract.sol') |
|
|
|
const result = await remix.call('fileManager', 'rename', 'browser/new_contract.sol', 'browser/old_contract.sol') |
|
|
|
|
|
|
|
|
|
|
|
console.log(result) |
|
|
|
console.log('result: ', result) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
run() |
|
|
|
run() |
|
|
|