From ef325e4fe52e547d96626a640a5951411c85892f Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 15 Jan 2021 23:47:58 +0100 Subject: [PATCH] scroll and click addFile --- 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 cc53774b94..c2e77291d9 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -19,7 +19,7 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC .click('li[data-id="treeViewLitreeViewItembrowser/README.txt"]') // focus on root directory .click('.newFile') .waitForElementVisible('*[data-id="treeViewLitreeViewItembrowser/blank"]') - .click('*[data-id="treeViewLitreeViewItembrowser/blank"] .remixui_items') + .scrollAndClick('*[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)