From 3dd332e6023e56ea837a5e8d1a0fb3d9936b6b93 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 7 Apr 2022 12:10:46 +0200 Subject: [PATCH] fix wait --- apps/remix-ide-e2e/src/commands/addFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index 99b2c06239..f9536bb259 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -16,7 +16,7 @@ class AddFile extends EventEmitter { function addFile (browser: NightwatchBrowser, name: string, content: NightwatchContractContent, done: VoidFunction) { browser.clickLaunchIcon('udapp') .clickLaunchIcon('filePanel') - .waitForElementVisible('li[data-id="treeViewDivtreeViewItem.txt"]') + .waitForElementVisible('li[data-id="treeViewLitreeViewItemREADME.txt"]') .click('li[data-id="treeViewLitreeViewItemREADME.txt"]').pause(1000) // focus on root directory .elements('css selector', `li[data-id="treeViewLitreeViewItem${name}"]`, (res) => { if (res.value && (res.value as any).length > 0) {