diff --git a/test-browser-debugger/test/vmdebugger.js b/test-browser-debugger/test/vmdebugger.js index 76cb2c0212..4869a60ec9 100644 --- a/test-browser-debugger/test/vmdebugger.js +++ b/test-browser-debugger/test/vmdebugger.js @@ -18,8 +18,6 @@ module.exports = { 'vmdebugger': function (browser) { loadTraceNotFound(browser) .click('#unload') - loadTrace(browser) - .click('#unload') panels(browser) .click('#unload') slider(browser) @@ -40,31 +38,13 @@ function loadTraceNotFound (browser) { .click('#load') .click('#txinfo .title') .execute(function () { - return document.querySelector('#txinfo .dropdownpanel .dropdownrawcontent').innerHTML + return document.querySelector('#debugger #error').innerHTML }, [], function (result) { console.log(result.value) - if (result.value.indexOf('not found') === -1) { - browser.assert.fail(' txinput panel does not contain ', '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', '') + if (result.value.indexOf('unable to retrieve tx 0x20ef65b8b186ca942zcccd634f37074dde49b541c27994fc7596740ef44cfd51') === -1) { + browser.assert.fail(' "unable to retrieve tx ..." error message should have been displayed ', 'info about error', '') } }) - .click('#unload') - .waitForElementNotVisible('#vmdebugger', 1000) return browser } diff --git a/test-browser/tests/ballot.js b/test-browser/tests/ballot.js index 4e7b4b3ae7..1a1ab80eef 100644 --- a/test-browser/tests/ballot.js +++ b/test-browser/tests/ballot.js @@ -45,8 +45,6 @@ function runTests (browser, testData) { .click('span#tx0x0571a2439ea58bd349dd130afb8aff62a33af14c06de0dbc3928519bdf13ce2e div[class^="debug"]') .pause(1000) .click('#jumppreviousbreakpoint') - .click('#stepdetail .title .fa') - .click('#asmcodes .title .fa') .pause(500) .perform(function (client, done) { console.log('goToVMtraceStep')