From c0e75c375a198c73caa9bebfdf0c1cbf2b2ade4c Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 21 Sep 2022 11:53:28 +0200 Subject: [PATCH] addfile --- apps/remix-ide-e2e/src/commands/addFile.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index b77e8327e0..86b92988c0 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -46,10 +46,8 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo .waitForElementContainsText('*[data-id$="/blank"]', '', 60000) .sendKeys('*[data-id$="/blank"] .remixui_items', name) .sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER) - .isVisible({ + .waitForElementVisible({ selector: `li[data-id="treeViewLitreeViewItem${name}"]`, - abortOnFailure: false, - suppressNotFoundErrors: true, timeout: 60000 }) .setEditorValue(content.content)