Fix failing firefox command

pull/668/head
ioedeveloper 4 years ago
parent 3e85e3c425
commit 5a723d86e2
  1. 7
      apps/remix-ide-e2e/src/commands/addFile.ts

@ -18,9 +18,10 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC
.clickLaunchIcon('fileExplorers') .clickLaunchIcon('fileExplorers')
.click('li[data-id="treeViewLitreeViewItembrowser/README.txt"]') // focus on root directory .click('li[data-id="treeViewLitreeViewItembrowser/README.txt"]') // focus on root directory
.click('.newFile') .click('.newFile')
.pause(2000) .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/blank"]')
.sendKeys('[data-id="treeViewLitreeViewItembrowser/blank"]', name) .click('[data-id="treeViewLitreeViewItembrowser/blank"]')
.sendKeys('[data-id="treeViewLitreeViewItembrowser/blank"]', browser.Keys.ENTER) .sendKeys('[data-id="treeViewLitreeViewItembrowser/blank"] .remixui_items', name)
.sendKeys('[data-id="treeViewLitreeViewItembrowser/blank"] .remixui_items', browser.Keys.ENTER)
.pause(2000) .pause(2000)
.waitForElementVisible(`li[data-id="treeViewLitreeViewItembrowser/${name}"]`) .waitForElementVisible(`li[data-id="treeViewLitreeViewItembrowser/${name}"]`)
.click(`li[data-id="treeViewLitreeViewItembrowser/${name}"]`) .click(`li[data-id="treeViewLitreeViewItembrowser/${name}"]`)

Loading…
Cancel
Save