From cb22a967b3777f429311b2ed7463a235f9f5d42b Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 27 Nov 2017 12:47:59 +0100 Subject: [PATCH] fixtest --- test-browser/helpers/contracts.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test-browser/helpers/contracts.js b/test-browser/helpers/contracts.js index ec9ea6ca18..3b8d76554b 100644 --- a/test-browser/helpers/contracts.js +++ b/test-browser/helpers/contracts.js @@ -67,10 +67,14 @@ function testFunction (fnFullName, txHash, log, expectedInput, expectedReturn, e // this => browser this.waitForElementPresent('.instance button[title="' + fnFullName + '"]') .perform(function (client, done) { - if (expectedInput) { - client.setValue('#runTabView input[title="' + expectedInput.types + '"]', expectedInput.values, function () {}) - } - done() + client.execute(function () { + document.querySelector('#optionViews').scrollTop = document.querySelector('#optionViews').scrollHeight + }, [], function () { + if (expectedInput) { + client.setValue('#runTabView input[title="' + expectedInput.types + '"]', expectedInput.values, function () {}) + } + done() + }) }) .click('.instance button[title="' + fnFullName + '"]') .pause(500)