|
|
@ -361,30 +361,31 @@ module.exports = { |
|
|
|
console.log(resolver.addr(node)); |
|
|
|
console.log(resolver.addr(node)); |
|
|
|
} |
|
|
|
} |
|
|
|
` |
|
|
|
` |
|
|
|
if (runMasterTests) |
|
|
|
if (runMasterTests) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
// .clickLaunchIcon('udapp')
|
|
|
|
// .clickLaunchIcon('udapp')
|
|
|
|
.switchEnvironment('vm-mainnet-fork') |
|
|
|
.switchEnvironment('vm-mainnet-fork') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.addFile('test_mainnet.sol', { content: script }) |
|
|
|
.addFile('test_mainnet.sol', { content: script }) |
|
|
|
|
|
|
|
|
|
|
|
const path = "//*[@class='view-line' and contains(.,'resolveENS') and contains(.,'view')]//span//span[contains(.,'(')]" |
|
|
|
const path = "//*[@class='view-line' and contains(.,'resolveENS') and contains(.,'view')]//span//span[contains(.,'(')]" |
|
|
|
const pathRunFunction = `//li//*[@aria-label='Run the free function "resolveENS"']` |
|
|
|
const pathRunFunction = `//li//*[@aria-label='Run the free function "resolveENS"']` |
|
|
|
browser.waitForElementVisible('#editorView') |
|
|
|
browser.waitForElementVisible('#editorView') |
|
|
|
//.waitForElementPresent(pathRunFunction)
|
|
|
|
//.waitForElementPresent(pathRunFunction)
|
|
|
|
.pause(10000) // the parser need to parse the code
|
|
|
|
.pause(10000) // the parser need to parse the code
|
|
|
|
.useXpath() |
|
|
|
.useXpath() |
|
|
|
.scrollToLine(16) |
|
|
|
.scrollToLine(16) |
|
|
|
.click(path) |
|
|
|
.click(path) |
|
|
|
.perform(function () { |
|
|
|
.perform(function () { |
|
|
|
const actions = this.actions({ async: true }); |
|
|
|
const actions = this.actions({ async: true }); |
|
|
|
return actions |
|
|
|
return actions |
|
|
|
.keyDown(this.Keys.SHIFT) |
|
|
|
.keyDown(this.Keys.SHIFT) |
|
|
|
.keyDown(this.Keys.ALT) |
|
|
|
.keyDown(this.Keys.ALT) |
|
|
|
.sendKeys('r') |
|
|
|
.sendKeys('r') |
|
|
|
}) |
|
|
|
}) |
|
|
|
.useCss() |
|
|
|
.useCss() |
|
|
|
.waitForElementContainsText('*[data-id="terminalJournal"]', '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 120000) |
|
|
|
.waitForElementContainsText('*[data-id="terminalJournal"]', '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 120000) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should run free function which logs in the terminal #group10': function (browser: NightwatchBrowser) { |
|
|
|
'Should run free function which logs in the terminal #group10': function (browser: NightwatchBrowser) { |
|
|
|