From 5bc89ba23408a601b8a48e1fa6ec5d09ad933993 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 16 Sep 2022 12:37:37 +0200 Subject: [PATCH] more screens --- apps/remix-ide-e2e/src/commands/addFile.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index 6eac6b7b9d..b14635b53d 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -40,11 +40,15 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC } else { browser.click('[data-id="fileExplorerNewFilecreateNewFile"]') .waitForElementContainsText('*[data-id$="/blank"]', '', 60000) + .saveScreenshot('./reports/screenshots/addFile4.png') .sendKeys('*[data-id$="/blank"] .remixui_items', name) + .saveScreenshot('./reports/screenshots/addFile5.png') .sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER) + .saveScreenshot('./reports/screenshots/addFile6.png') .waitForElementVisible(`li[data-id="treeViewLitreeViewItem${name}"]`, 60000) //.waitForElementVisible('xpath', `//*[@data-id='tab-active' and contains(.,'${name}')]`, 60000) .setEditorValue(content.content) + .saveScreenshot('./reports/screenshots/addFile7.png') .perform(function () { done() })