rm exec script

pull/2729/head
filip mertens 2 years ago committed by Aniket
parent 7504d675a1
commit 3ebfba7dc6
  1. 20
      apps/remix-ide-e2e/src/commands/executeScript.ts

@ -1,20 +0,0 @@
import { NightwatchBrowser } from 'nightwatch'
import EventEmitter from 'events'
class ExecuteScript extends EventEmitter {
command (this: NightwatchBrowser, script: string): NightwatchBrowser {
this.api
.clearEditableContent('*[data-id="terminalCliInput"]')
.click('*[data-id="terminalCli"]')
.setValue('*[data-id="terminalCliInput"]', [this.api.Keys.CONTROL, 'a', this.api.Keys.DELETE])
.sendKeys('*[data-id="terminalCliInput"]', script)
.sendKeys('*[data-id="terminalCliInput"]', this.api.Keys.ENTER)
.sendKeys('*[data-id="terminalCliInput"]', this.api.Keys.ENTER)
.perform(() => {
this.emit('complete')
})
return this
}
}
module.exports = ExecuteScript
Loading…
Cancel
Save