From b1a36b720650ec54c7a6f3cfd2ab3d6d74aaac23 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 6 Apr 2022 14:47:29 +0200 Subject: [PATCH] rollback e2e tests fix --- apps/remix-ide-e2e/src/commands/addFile.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index 6177da396e..f9536bb259 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -25,15 +25,12 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC done() }) } else { - const txtFile = name + '.txt' browser.click('[data-id="fileExplorerNewFilecreateNewFile"]') .waitForElementContainsText('*[data-id$="/blank"]', '', 60000) - .sendKeys('*[data-id$="/blank"] .remixui_items', txtFile) + .sendKeys('*[data-id$="/blank"] .remixui_items', name) .sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER) .pause(2000) - .waitForElementVisible(`li[data-id="treeViewLitreeViewItem${txtFile}"]`, 60000) - .renamePath(txtFile, name.split('/').pop(), name) - .openFile(name) + .waitForElementVisible(`li[data-id="treeViewLitreeViewItem${name}"]`, 60000) .setEditorValue(content.content) .pause(1000) .perform(function () {