pull/3094/head
yann300 6 years ago
parent be2672d13f
commit 441ad7b7a1
  1. 2
      src/app/components/vertical-icons-component.js
  2. 2
      test-browser/helpers/contracts.js
  3. 4
      test-browser/helpers/init.js

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

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