pull/5370/head
filip mertens 2 years ago
parent c6565f8f58
commit 753225225e
  1. 7
      apps/remix-ide-e2e/src/commands/clickLaunchIcon.ts

@ -3,7 +3,12 @@ import EventEmitter from 'events'
class ClickLaunchIcon extends EventEmitter {
command (this: NightwatchBrowser, icon: string): NightwatchBrowser {
this.api.waitForElementVisible('#icon-panel div[plugin="' + icon + '"]').click('#icon-panel div[plugin="' + icon + '"]').perform((done) => {
this.api
.waitForElementVisible('#icon-panel div[plugin="' + icon + '"]')
.click('#icon-panel div[plugin="' + icon + '"]', (result) => {
console.log('clicking on ', result.status)
})
.perform((done) => {
done()
this.emit('complete')
})

Loading…
Cancel
Save