diff --git a/remix-debugger/test-browser/test/vmdebugger.js b/remix-debugger/test-browser/test/vmdebugger.js index a307289311..dfb64aed78 100644 --- a/remix-debugger/test-browser/test/vmdebugger.js +++ b/remix-debugger/test-browser/test/vmdebugger.js @@ -39,8 +39,13 @@ function loadTraceNotFound (browser) { .setValue('#txinput', '0x20ef65b8b186ca942zcccd634f37074dde49b541c27994fc7596740ef44cfd51') .click('#load') .click('#txinfo .title') - .click('#txinfo .dropdownpanel .btn') - .expect.element('#txinfo .dropdownpanel .dropdownrawcontent').text.to.contain('') + .execute(function () { + return document.querySelector('#txinfo .dropdownpanel .dropdownrawcontent').innerHTML + }, [], function (result) { + if (result.value.indexOf('') === -1) { + browser.assert.fail(' txinput panel does not contain ', 'info about error', '') + } + }) return browser } @@ -50,9 +55,14 @@ function loadTrace (browser) { .setValue('#txinput', '0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51') .click('#load') .click('#txinfo .title') - .click('#txinfo .dropdownpanel .btn') - .expect.element('#txinfo .dropdownpanel .dropdownrawcontent').text.to.contain('0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51') - browser.click('#unload') + .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 }