From 4b3335583f1c2ed5cab368ce21b28d65aace8f9c Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Wed, 8 Sep 2021 23:34:24 +0100 Subject: [PATCH] added a pause in addFile.ts --- apps/remix-ide-e2e/src/commands/addFile.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index aa1f8d7f6e..3e7950e10d 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -16,8 +16,11 @@ class AddFile extends EventEmitter { function addFile (browser: NightwatchBrowser, name: string, content: NightwatchContractContent, done: VoidFunction) { browser.clickLaunchIcon('udapp') .clickLaunchIcon('filePanel') - .click('li[data-id="treeViewLitreeViewItemREADME.txt"]') // focus on root directory + .pause(1000) + .click('li[data-id="treeViewLitreeViewItemREADME.txt"]') + .pause(1000) // focus on root directory .click('.newFile') + .pause(2000) .waitForElementContainsText('*[data-id$="/blank"]', '', 60000) .sendKeys('*[data-id$="/blank"] .remixui_items', name) .sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER)