improvement in e2e

pull/3530/head^2
lianahus 2 years ago committed by Aniket
parent 0c2f815bd8
commit f1cf0d3ca0
  1. 5
      apps/remix-ide-e2e/src/commands/addFile.ts

@ -54,7 +54,10 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo
suppressNotFoundErrors: true,
timeout: 60000
})
.waitForElementContainsText('*[data-id="activeTabTitle"]', name)
.waitForElementVisible({
selector: `//*[@data-id='activeTabTitle' and contains(., "${name}")]`,
locateStrategy: 'xpath'
})
.setEditorValue(content.content)
.getEditorValue((result) => {
if(result != content.content) {

Loading…
Cancel
Save