From a78482bd0aae1413574016b99a66926c9a972aa6 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 8 Dec 2020 13:56:24 +0530 Subject: [PATCH] editor and publishContract tests fixed --- apps/remix-ide-e2e/src/tests/editor.test.ts | 2 ++ apps/remix-ide-e2e/src/tests/publishContract.test.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/remix-ide-e2e/src/tests/editor.test.ts b/apps/remix-ide-e2e/src/tests/editor.test.ts index f03cd804b4..d6cf1b5734 100644 --- a/apps/remix-ide-e2e/src/tests/editor.test.ts +++ b/apps/remix-ide-e2e/src/tests/editor.test.ts @@ -12,6 +12,8 @@ module.exports = { 'Should zoom in editor': function (browser: NightwatchBrowser) { browser.waitForElementVisible('div[data-id="mainPanelPluginsContainer"]') + .clickLaunchIcon('fileExplorers') + .waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') .click('*[data-id="treeViewTogglebrowser/contracts"]') .openFile('browser/contracts/1_Storage.sol') .waitForElementVisible('*[data-id="editorInput"]') diff --git a/apps/remix-ide-e2e/src/tests/publishContract.test.ts b/apps/remix-ide-e2e/src/tests/publishContract.test.ts index b1f60f423f..b383fcfdc2 100644 --- a/apps/remix-ide-e2e/src/tests/publishContract.test.ts +++ b/apps/remix-ide-e2e/src/tests/publishContract.test.ts @@ -43,6 +43,7 @@ module.exports = { browser .waitForElementVisible('#icon-panel') .clickLaunchIcon('fileExplorers') + .click('*[data-id="treeViewTogglebrowser/contracts"]') .openFile('browser/contracts/1_Storage.sol') .clickLaunchIcon('udapp') .waitForElementPresent('*[data-id="contractDropdownIpfsCheckbox"]') @@ -56,6 +57,7 @@ module.exports = { 'Should remember choice after page refresh': function (browser: NightwatchBrowser) { browser .refresh() + .click('*[data-id="treeViewTogglebrowser/contracts"]') .openFile('browser/contracts/1_Storage.sol') .clickLaunchIcon('udapp') .waitForElementPresent('*[data-id="contractDropdownIpfsCheckbox"]')