added a pause in addFile.ts

pull/5370/head
davidzagi93@gmail.com 3 years ago
parent 68d58f3d34
commit 4b3335583f
  1. 5
      apps/remix-ide-e2e/src/commands/addFile.ts

@ -16,8 +16,11 @@ class AddFile extends EventEmitter {
function addFile (browser: NightwatchBrowser, name: string, content: NightwatchContractContent, done: VoidFunction) {
browser.clickLaunchIcon('udapp')
.clickLaunchIcon('filePanel')
.click('li[data-id="treeViewLitreeViewItemREADME.txt"]') // focus on root directory
.pause(1000)
.click('li[data-id="treeViewLitreeViewItemREADME.txt"]')
.pause(1000) // focus on root directory
.click('.newFile')
.pause(2000)
.waitForElementContainsText('*[data-id$="/blank"]', '', 60000)
.sendKeys('*[data-id$="/blank"] .remixui_items', name)
.sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER)

Loading…
Cancel
Save