From 0e96e48a4d342069a5100148ab5da4f87c487c97 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 2 Apr 2019 09:19:17 +0200 Subject: [PATCH] fix tests --- src/app/components/vertical-icons-component.js | 2 +- test-browser/helpers/contracts.js | 2 +- test-browser/helpers/init.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/vertical-icons-component.js b/src/app/components/vertical-icons-component.js index 5dbc08f959..4d883b0277 100644 --- a/src/app/components/vertical-icons-component.js +++ b/src/app/components/vertical-icons-component.js @@ -57,7 +57,7 @@ class VerticalIconComponent { * @param {ModuleProfile} profile The profile of the module */ addIcon ({kind, name, icon, displayName}) { - this.icons[name] = yo`
${name}
` + this.icons[name] = yo`
${name}
` this.iconKind[kind || 'other'].appendChild(this.icons[name]) } diff --git a/test-browser/helpers/contracts.js b/test-browser/helpers/contracts.js index d7ac4df799..08a553072a 100644 --- a/test-browser/helpers/contracts.js +++ b/test-browser/helpers/contracts.js @@ -28,7 +28,7 @@ module.exports = { } function clickLaunchIcon (icon) { - this.click('#icon-panel div[title="' + icon + '"]') + this.click('#icon-panel div[plugin="' + icon + '"]') return this } diff --git a/test-browser/helpers/init.js b/test-browser/helpers/init.js index 191bee9296..5e014be5fc 100644 --- a/test-browser/helpers/init.js +++ b/test-browser/helpers/init.js @@ -17,7 +17,7 @@ module.exports = function (browser, callback) { } function initModules (browser, callback) { - browser.click('#icon-panel div[title="pluginManager"]') + browser.click('#icon-panel div[plugin="pluginManager"]') .execute(function () { document.querySelector('div[title="pluginManager"]').scrollTop = document.querySelector('div[title="pluginManager"]').scrollHeight }, [], function () { @@ -25,7 +25,7 @@ function initModules (browser, callback) { .click('#pluginManager article[title="run"] button') .click('#pluginManager article[title="solidityStaticAnalysis"] button') .click('#pluginManager article[title="debugger"] button') - .click('#icon-panel div[title="fileExplorers"]') + .click('#icon-panel div[plugin="fileExplorers"]') .perform(() => { callback() }) }) }