Added done callback

pull/262/head
ioedeveloper 4 years ago
parent 47303b91e0
commit 555abaf335
  1. 3
      test-browser/commands/clickLaunchIcon.js

@ -2,8 +2,9 @@ const EventEmitter = require('events')
class ClickLaunchIcon extends EventEmitter { class ClickLaunchIcon extends EventEmitter {
command (icon) { 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') this.emit('complete')
done()
}) })
return this return this
} }

Loading…
Cancel
Save