improvement in e2e

pull/5370/head
lianahus 2 years ago committed by Aniket
parent 6a5e26f7aa
commit 92eb0e7f01
  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