From 7a8c3641dbc601c2278eae17ad8624e410c62542 Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Thu, 14 Oct 2021 13:04:02 +0100 Subject: [PATCH] change backspace to delete value in terminal test --- apps/remix-ide-e2e/src/commands/executeScript.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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)