Added done callback

pull/5370/head
ioedeveloper 5 years ago
parent bd1bf442be
commit 1ea048cf78
  1. 3
      apps/remix-ide/test-browser/commands/clickLaunchIcon.js

@ -2,8 +2,9 @@ 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(() => {
this.api.waitForElementVisible('#icon-panel div[plugin="' + icon + '"]').click('#icon-panel div[plugin="' + icon + '"]').perform((done) => {
this.emit('complete')
done()
})
return this
}

Loading…
Cancel
Save