change backspace to delete value in terminal test

pull/1342/head
davidzagi93@gmail.com 3 years ago
parent b97ab4b316
commit 7a8c3641db
  1. 8
      apps/remix-ide-e2e/src/commands/executeScript.ts

@ -6,13 +6,7 @@ class ExecuteScript extends EventEmitter {
this.api
.clearEditableContent('*[data-id="terminalCliInput"]')
.click('*[data-id="terminalCli"]')
.pause(2000)
.sendKeys('*[data-id="terminalCliInput"]', this.api.Keys.BACK_SPACE)
.sendKeys('*[data-id="terminalCliInput"]', this.api.Keys.BACK_SPACE)
.sendKeys('*[data-id="terminalCliInput"]', this.api.Keys.BACK_SPACE)
.sendKeys('*[data-id="terminalCliInput"]', this.api.Keys.BACK_SPACE)
.sendKeys('*[data-id="terminalCliInput"]', this.api.Keys.BACK_SPACE)
.sendKeys('*[data-id="terminalCliInput"]', this.api.Keys.BACK_SPACE)
.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)

Loading…
Cancel
Save