diff --git a/apps/remix-ide-e2e/src/commands/executeScript.ts b/apps/remix-ide-e2e/src/commands/executeScript.ts index 42654b8d54..dbb93e66db 100644 --- a/apps/remix-ide-e2e/src/commands/executeScript.ts +++ b/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)