From a4a6c6185cfbeea7ad71966e9a7e0b34d10614c3 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 15 Jan 2021 23:29:43 +0100 Subject: [PATCH] Update addFile custom command --- apps/remix-ide-e2e/src/commands/addFile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index 747b27cadb..96acbae867 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -18,8 +18,8 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC .clickLaunchIcon('fileExplorers') .click('li[data-id="treeViewLitreeViewItembrowser/README.txt"]') // focus on root directory .click('.newFile') - .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/blank"]') - .click('[data-id="treeViewLitreeViewItembrowser/blank"]') + .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/blank"] .remixui_items') + .click('[data-id="treeViewLitreeViewItembrowser/blank"] .remixui_items') .sendKeys('[data-id="treeViewLitreeViewItembrowser/blank"] .remixui_items', name) .sendKeys('[data-id="treeViewLitreeViewItembrowser/blank"] .remixui_items', browser.Keys.ENTER) .pause(2000)