From eba995208f1302181dcf7454cb923d867524894e Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 16 Sep 2022 09:39:23 +0200 Subject: [PATCH] scroll --- apps/remix-ide-e2e/src/commands/addFile.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index aa6b7ce971..c64fb830f6 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -27,6 +27,7 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC .saveScreenshot('./reports/screenshots/addFile2.png') } }) + .scrollInto('li[data-id="treeViewLitreeViewItemREADME.txt"]') .saveScreenshot('./reports/screenshots/addFile3.png') .waitForElementVisible('li[data-id="treeViewLitreeViewItemREADME.txt"]') .click('li[data-id="treeViewLitreeViewItemREADME.txt"]').pause(1000) // focus on root directory