Skip to content

Commit

Permalink
done callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ioedeveloper committed Jun 16, 2020
1 parent fb8f6f3 commit 0c2c021
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test-browser/commands/clickLaunchIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
9 changes: 5 additions & 4 deletions test-browser/helpers/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
}

Expand Down

0 comments on commit 0c2c021

Please sign in to comment.