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

Update vertical-icons-component.js
pull/1/head
yann300 6 years ago committed by GitHub
commit 4e98f26980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/app/components/vertical-icons-component.js
  2. 2
      test-browser/helpers/contracts.js
  3. 4
      test-browser/helpers/init.js

@ -56,8 +56,8 @@ class VerticalIconComponent {
* Add an icon to the map
* @param {ModuleProfile} profile The profile of the module
*/
addIcon ({kind, name, icon}) {
this.icons[name] = yo`<div class="${css.icon}" onclick="${(e) => { this._iconClick(name) }}" title="${name}" ><img src="${icon}" alt="${name}" /></div>`
addIcon ({kind, name, icon, displayName}) {
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])
}

@ -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
}

@ -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() })
})
}

Loading…
Cancel
Save