test update

pull/1342/head
davidzagi93@gmail.com 3 years ago
parent 911f0fd1e2
commit b97ab4b316
  1. 7
      apps/remix-ide-e2e/src/commands/executeScript.ts
  2. 1
      apps/remix-ide-e2e/src/tests/terminal.test.ts

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

@ -36,7 +36,6 @@ module.exports = {
.addFile('asyncAwait.js', { content: asyncAwait })
.openFile('asyncAwait.js')
.executeScript('remix.execute("asyncAwait.js")')
.pause(2000)
.waitForElementContainsText('*[data-id="terminalJournal"]', 'Waiting Promise', 60000)
.waitForElementContainsText('*[data-id="terminalJournal"]', 'result - ', 60000)
.waitForElementContainsText('*[data-id="terminalJournal"]', 'Promise Resolved', 60000)

Loading…
Cancel
Save