From 70ba449f6ee2ff7ea6430aece8e23623de5e66fb Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Tue, 3 Mar 2020 07:43:31 +0000 Subject: [PATCH] Fix failing transaction execution test --- src/app/panels/terminal.js | 3 ++- test-browser/commands/checkTerminalFilter.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/panels/terminal.js b/src/app/panels/terminal.js index 8c9730edaf..9665161035 100644 --- a/src/app/panels/terminal.js +++ b/src/app/panels/terminal.js @@ -158,7 +158,8 @@ class Terminal extends Plugin { class="border ${css.filter} form-control" id="searchInput" onkeydown=${filter} - placeholder="Filter with transaction hash or address"> + placeholder="Search with transaction hash or address" + data-id="terminalInputSearch"> ` self._view.bar = yo`
diff --git a/test-browser/commands/checkTerminalFilter.js b/test-browser/commands/checkTerminalFilter.js index e448599bbb..8f78306fe2 100644 --- a/test-browser/commands/checkTerminalFilter.js +++ b/test-browser/commands/checkTerminalFilter.js @@ -17,10 +17,10 @@ function checkFilter (browser, filter, test, done) { done() return } - const filterClass = '#main-panel div[class^="search"] input[class^="filter"]' + const filterClass = '[data-id="terminalInputSearch"]' browser.setValue(filterClass, filter, function () { browser.execute(function () { - return document.querySelector('#main-panel div[class^="journal"]').innerHTML === test + return document.querySelector('[data-id="terminalJournal"]').innerHTML === test }, [], function (result) { browser.clearValue(filterClass).setValue(filterClass, '', function () { if (!result.value) {