Fix failing firefox command

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

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

Loading…
Cancel
Save