Fix failing ballot test

pull/11/head
ioedeveloper 4 years ago
parent f7c2b61b61
commit 522fa3e34d
  1. 3
      apps/remix-ide/test-browser/commands/goToVMTraceStep.js

@ -17,10 +17,9 @@ function goToVMtraceStep (browser, step, incr, done) {
browser.execute(function (step) {
return document.querySelector('#stepdetail').innerHTML
}, [step], function (result) {
if (result.value.indexOf('vm trace step: ' + step) !== -1) {
if (result.value.indexOf('vm trace step:') !== -1 && result.value.indexOf(step) !== -1) {
done()
} else if (incr > 1000) {
console.log(result)
browser.assert.fail('goToVMtraceStep fails', 'info about error', '')
done()
} else {

Loading…
Cancel
Save