pull/2868/head
filip mertens 2 years ago
parent 8c49d8481d
commit 9d2571a596
  1. 8
      apps/remix-ide-e2e/src/commands/addFile.ts

@ -31,6 +31,14 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC
.saveScreenshot('./reports/screenshots/addFile3.png')
.waitForElementVisible('li[data-id="treeViewLitreeViewItemREADME.txt"]')
.click('li[data-id="treeViewLitreeViewItemREADME.txt"]').pause(1000) // focus on root directory
.isVisible({
selector: `//*[@data-id="treeViewLitreeViewItem${name}"]`,
locateStrategy: 'xpath',
abortOnFailure: false,
suppressNotFoundErrors: true,
},(okVisible) => {
console.log('okVisible', okVisible)
})
.elements('css selector', `li[data-id="treeViewLitreeViewItem${name}"]`, (res) => {
console.log(res)
if (res.value && (res.value as any).length > 0) {

Loading…
Cancel
Save