From 3f8c557ebf9d8785d75831acd0cdd3fde7884524 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Mon, 19 Aug 2019 14:38:25 +0200 Subject: [PATCH] renamed editor-container id to main-panel --- src/app.js | 2 +- test-browser/commands/checkTerminalFilter.js | 4 ++-- test-browser/commands/testFunction.js | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app.js b/src/app.js index 54e14404eb..3684485629 100644 --- a/src/app.js +++ b/src/app.js @@ -163,7 +163,7 @@ class App { // handle the editor + terminal self._view.mainpanel = yo` -
+
${''}
` diff --git a/test-browser/commands/checkTerminalFilter.js b/test-browser/commands/checkTerminalFilter.js index 8cc90327da..810cb2b2ac 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 } - var filterClass = '#editor-container div[class^="search"] input[class^="filter"]' + var filterClass = '#main-panel div[class^="search"] input[class^="filter"]' browser.setValue(filterClass, filter, function () { browser.execute(function () { - return document.querySelector('#editor-container div[class^="journal"]').innerHTML === test + return document.querySelector('#main-panel div[class^="journal"]').innerHTML === test }, [], function (result) { browser.clearValue(filterClass).setValue(filterClass, '', function () { if (!result.value) { diff --git a/test-browser/commands/testFunction.js b/test-browser/commands/testFunction.js index 18f72b88a5..b201158331 100644 --- a/test-browser/commands/testFunction.js +++ b/test-browser/commands/testFunction.js @@ -16,12 +16,12 @@ class TestFunction extends EventEmitter { }) .click('.instance button[title="' + fnFullName + '"]') .pause(500) - .waitForElementPresent('#editor-container div[class^="terminal"] span[id="tx' + txHash + '"]') - .assert.containsText('#editor-container div[class^="terminal"] span[id="tx' + txHash + '"] span', log) - .click('#editor-container div[class^="terminal"] span[id="tx' + txHash + '"] div[class^="log"]') + .waitForElementPresent('#main-panel div[class^="terminal"] span[id="tx' + txHash + '"]') + .assert.containsText('#main-panel div[class^="terminal"] span[id="tx' + txHash + '"] span', log) + .click('#main-panel div[class^="terminal"] span[id="tx' + txHash + '"] div[class^="log"]') .perform(function (client, done) { if (expectedReturn) { - client.getText('#editor-container div[class^="terminal"] span[id="tx' + txHash + '"] table[class^="txTable"] #decodedoutput', (result) => { + client.getText('#main-panel div[class^="terminal"] span[id="tx' + txHash + '"] table[class^="txTable"] #decodedoutput', (result) => { console.log(result) var equal = deepequal(JSON.parse(result.value), JSON.parse(expectedReturn)) if (!equal) { @@ -33,7 +33,7 @@ class TestFunction extends EventEmitter { }) .perform((client, done) => { if (expectedEvent) { - client.getText('#editor-container div[class^="terminal"] span[id="tx' + txHash + '"] table[class^="txTable"] #logs', (result) => { + client.getText('#main-panel div[class^="terminal"] span[id="tx' + txHash + '"] table[class^="txTable"] #logs', (result) => { console.log(result) var equal = deepequal(JSON.parse(result.value), JSON.parse(expectedEvent)) if (!equal) {