|
|
@ -18,8 +18,6 @@ module.exports = { |
|
|
|
'vmdebugger': function (browser) { |
|
|
|
'vmdebugger': function (browser) { |
|
|
|
loadTraceNotFound(browser) |
|
|
|
loadTraceNotFound(browser) |
|
|
|
.click('#unload') |
|
|
|
.click('#unload') |
|
|
|
loadTrace(browser) |
|
|
|
|
|
|
|
.click('#unload') |
|
|
|
|
|
|
|
panels(browser) |
|
|
|
panels(browser) |
|
|
|
.click('#unload') |
|
|
|
.click('#unload') |
|
|
|
slider(browser) |
|
|
|
slider(browser) |
|
|
@ -40,31 +38,13 @@ function loadTraceNotFound (browser) { |
|
|
|
.click('#load') |
|
|
|
.click('#load') |
|
|
|
.click('#txinfo .title') |
|
|
|
.click('#txinfo .title') |
|
|
|
.execute(function () { |
|
|
|
.execute(function () { |
|
|
|
return document.querySelector('#txinfo .dropdownpanel .dropdownrawcontent').innerHTML |
|
|
|
return document.querySelector('#debugger #error').innerHTML |
|
|
|
}, [], function (result) { |
|
|
|
}, [], function (result) { |
|
|
|
console.log(result.value) |
|
|
|
console.log(result.value) |
|
|
|
if (result.value.indexOf('not found') === -1) { |
|
|
|
if (result.value.indexOf('unable to retrieve tx 0x20ef65b8b186ca942zcccd634f37074dde49b541c27994fc7596740ef44cfd51') === -1) { |
|
|
|
browser.assert.fail(' txinput panel does not contain <not found> ', 'info about error', '') |
|
|
|
browser.assert.fail(' "unable to retrieve tx ..." error message should have been displayed ', 'info about error', '') |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return browser |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function loadTrace (browser) { |
|
|
|
|
|
|
|
browser |
|
|
|
|
|
|
|
.clearValue('#txinput') |
|
|
|
|
|
|
|
.setValue('#txinput', '0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51') |
|
|
|
|
|
|
|
.click('#load') |
|
|
|
|
|
|
|
.click('#txinfo .title') |
|
|
|
|
|
|
|
.execute(function () { |
|
|
|
|
|
|
|
return document.querySelector('#txinfo .dropdownpanel .dropdownrawcontent').innerHTML |
|
|
|
|
|
|
|
}, [], function (result) { |
|
|
|
|
|
|
|
if (result.value.indexOf('0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51') === -1) { |
|
|
|
|
|
|
|
browser.assert.fail(' txinput panel does not contain 0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51 ', 'info about error', '') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
.click('#unload') |
|
|
|
|
|
|
|
.waitForElementNotVisible('#vmdebugger', 1000) |
|
|
|
|
|
|
|
return browser |
|
|
|
return browser |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|