pull/1/head
yann300 7 years ago
parent 90bf6d0ecb
commit cb22a967b3
  1. 4
      test-browser/helpers/contracts.js

@ -67,11 +67,15 @@ function testFunction (fnFullName, txHash, log, expectedInput, expectedReturn, e
// this => browser // this => browser
this.waitForElementPresent('.instance button[title="' + fnFullName + '"]') this.waitForElementPresent('.instance button[title="' + fnFullName + '"]')
.perform(function (client, done) { .perform(function (client, done) {
client.execute(function () {
document.querySelector('#optionViews').scrollTop = document.querySelector('#optionViews').scrollHeight
}, [], function () {
if (expectedInput) { if (expectedInput) {
client.setValue('#runTabView input[title="' + expectedInput.types + '"]', expectedInput.values, function () {}) client.setValue('#runTabView input[title="' + expectedInput.types + '"]', expectedInput.values, function () {})
} }
done() done()
}) })
})
.click('.instance button[title="' + fnFullName + '"]') .click('.instance button[title="' + fnFullName + '"]')
.pause(500) .pause(500)
.waitForElementPresent('#editor-container div[class^="terminal"] span[id="tx' + txHash + '"]') .waitForElementPresent('#editor-container div[class^="terminal"] span[id="tx' + txHash + '"]')

Loading…
Cancel
Save