done callback

pull/11/head
ioedeveloper 4 years ago
parent 894aa795ed
commit 226a8e43a8
  1. 2
      apps/remix-ide/test-browser/commands/clickLaunchIcon.js
  2. 9
      apps/remix-ide/test-browser/helpers/init.js

@ -3,8 +3,8 @@ const EventEmitter = require('events')
class ClickLaunchIcon extends EventEmitter {
command (icon) {
this.api.waitForElementVisible('#icon-panel div[plugin="' + icon + '"]').click('#icon-panel div[plugin="' + icon + '"]').perform((done) => {
this.emit('complete')
done()
this.emit('complete')
})
return this
}

@ -10,16 +10,17 @@ module.exports = function (browser, callback, url, preloadPlugins = true) {
if (preloadPlugins) {
initModules(browser, () => {
browser.clickLaunchIcon('solidity')
.pause(2000)
console.log('called init after')
browser.pause(2000)
.execute(() => {
document.getElementById('autoCompile').click()
})
})
}
})
.perform(() => {
callback()
})
})
.perform(() => {
callback()
})
}

Loading…
Cancel
Save