Fix failing transaction execution test

pull/1/head
ioedeveloper 5 years ago
parent 7eb1fb77d5
commit 9ede353a96
  1. 3
      src/app/panels/terminal.js
  2. 4
      test-browser/commands/checkTerminalFilter.js

@ -158,7 +158,8 @@ class Terminal extends Plugin {
class="border ${css.filter} form-control" class="border ${css.filter} form-control"
id="searchInput" id="searchInput"
onkeydown=${filter} onkeydown=${filter}
placeholder="Filter with transaction hash or address"> placeholder="Search with transaction hash or address"
data-id="terminalInputSearch">
</input>` </input>`
self._view.bar = yo` self._view.bar = yo`
<div class="${css.bar}"> <div class="${css.bar}">

@ -17,10 +17,10 @@ function checkFilter (browser, filter, test, done) {
done() done()
return return
} }
const filterClass = '#main-panel div[class^="search"] input[class^="filter"]' const filterClass = '[data-id="terminalInputSearch"]'
browser.setValue(filterClass, filter, function () { browser.setValue(filterClass, filter, function () {
browser.execute(function () { browser.execute(function () {
return document.querySelector('#main-panel div[class^="journal"]').innerHTML === test return document.querySelector('[data-id="terminalJournal"]').innerHTML === test
}, [], function (result) { }, [], function (result) {
browser.clearValue(filterClass).setValue(filterClass, '', function () { browser.clearValue(filterClass).setValue(filterClass, '', function () {
if (!result.value) { if (!result.value) {

Loading…
Cancel
Save