From 81af656ac742e743cc561afc9057dd6db67986dd Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Tue, 27 Sep 2022 19:12:09 +0530 Subject: [PATCH] new file creation e2e --- apps/remix-ide-e2e/src/tests/homeTab.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/remix-ide-e2e/src/tests/homeTab.test.ts b/apps/remix-ide-e2e/src/tests/homeTab.test.ts index bb3f2eab29..8d3d643db1 100644 --- a/apps/remix-ide-e2e/src/tests/homeTab.test.ts +++ b/apps/remix-ide-e2e/src/tests/homeTab.test.ts @@ -12,6 +12,12 @@ describe('HomeTab e2e test', function () { browser .waitForElementVisible('*[data-id="homeTabNewFile"]') .click('*[data-id="homeTabNewFile"]') + // click again to make it work + .click('*[data-id="homeTabNewFile"]') + .waitForElementVisible('li[data-id="treeViewLitreeViewItem//blank"]') + .sendKeys('li[data-id="treeViewLitreeViewItem//blank"]', 'newTestFile') + .sendKeys('li[data-id="treeViewLitreeViewItem//blank"]', browser.Keys.ENTER) + .waitForElementVisible('li[data-id="treeViewLitreeViewItemnewTestFile.sol"]') }) after(browser => browser.end());