Unverified Commit 4e98f269 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1792 from ethereum/yann300-patch-17

Update vertical-icons-component.js
parents d5f51844 0e96e48a
...@@ -56,8 +56,8 @@ class VerticalIconComponent { ...@@ -56,8 +56,8 @@ class VerticalIconComponent {
* Add an icon to the map * Add an icon to the map
* @param {ModuleProfile} profile The profile of the module * @param {ModuleProfile} profile The profile of the module
*/ */
addIcon ({kind, name, icon}) { addIcon ({kind, name, icon, displayName}) {
this.icons[name] = yo`<div class="${css.icon}" onclick="${(e) => { this._iconClick(name) }}" title="${name}" ><img src="${icon}" alt="${name}" /></div>` this.icons[name] = yo`<div class="${css.icon}" onclick="${(e) => { this._iconClick(name) }}" plugin="${name}" title="${displayName || name}" ><img src="${icon}" alt="${name}" /></div>`
this.iconKind[kind || 'other'].appendChild(this.icons[name]) this.iconKind[kind || 'other'].appendChild(this.icons[name])
} }
......
...@@ -28,7 +28,7 @@ module.exports = { ...@@ -28,7 +28,7 @@ module.exports = {
} }
function clickLaunchIcon (icon) { function clickLaunchIcon (icon) {
this.click('#icon-panel div[title="' + icon + '"]') this.click('#icon-panel div[plugin="' + icon + '"]')
return this return this
} }
......
...@@ -17,7 +17,7 @@ module.exports = function (browser, callback) { ...@@ -17,7 +17,7 @@ module.exports = function (browser, callback) {
} }
function initModules (browser, callback) { function initModules (browser, callback) {
browser.click('#icon-panel div[title="pluginManager"]') browser.click('#icon-panel div[plugin="pluginManager"]')
.execute(function () { .execute(function () {
document.querySelector('div[title="pluginManager"]').scrollTop = document.querySelector('div[title="pluginManager"]').scrollHeight document.querySelector('div[title="pluginManager"]').scrollTop = document.querySelector('div[title="pluginManager"]').scrollHeight
}, [], function () { }, [], function () {
...@@ -25,7 +25,7 @@ function initModules (browser, callback) { ...@@ -25,7 +25,7 @@ function initModules (browser, callback) {
.click('#pluginManager article[title="run"] button') .click('#pluginManager article[title="run"] button')
.click('#pluginManager article[title="solidityStaticAnalysis"] button') .click('#pluginManager article[title="solidityStaticAnalysis"] button')
.click('#pluginManager article[title="debugger"] button') .click('#pluginManager article[title="debugger"] button')
.click('#icon-panel div[title="fileExplorers"]') .click('#icon-panel div[plugin="fileExplorers"]')
.perform(() => { callback() }) .perform(() => { callback() })
}) })
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment