From 3d36b28a4eae1740d93246d43243106955d7d60c Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Fri, 15 Sep 2023 23:37:37 +0100 Subject: [PATCH] fix selector --- 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 7a74dba1932..4421381c100 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -43,7 +43,7 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo done() }) } else { - browser.click('span[data-id="fileExplorerNewFilecreateNewFile"]') + browser.click('*[data-id="fileExplorerNewFilecreateNewFile"]') .waitForElementContainsText('*[data-id$="/blank"]', '', 60000) .sendKeys('*[data-id$="/blank"] .remixui_items', name) .sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER)