From b92b45060a11dac82301e1487b93b5c47dda0380 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 8 Dec 2020 13:13:02 +0530 Subject: [PATCH] e2e tests fixed --- apps/remix-ide-e2e/src/tests/defaultLayout.test.ts | 6 +++++- apps/remix-ide-e2e/src/tests/editor.test.ts | 1 + apps/remix-ide-e2e/src/tests/publishContract.test.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts b/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts index 1ef5c112a1..722bdcb5c5 100644 --- a/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts +++ b/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts @@ -20,7 +20,10 @@ module.exports = { browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]') .assert.containsText('h6[data-id="sidePanelSwapitTitle"]', 'FILE EXPLORERS') .waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') - .waitForElementVisible('li[key="browser/contracts/3_Ballot.sol"]') + .waitForElementVisible('li[key="browser/contracts"]') + .waitForElementVisible('li[key="browser/scripts"]') + .waitForElementVisible('li[key="browser/tests"]') + .waitForElementVisible('li[key="browser/README"]') }, 'Loads Main View': function (browser: NightwatchBrowser) { @@ -68,6 +71,7 @@ module.exports = { 'Switch Tabs using tabs icon': function (browser: NightwatchBrowser) { browser .waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') + .click('*[data-id="treeViewTogglebrowser/contracts"]') .openFile('browser/contracts/3_Ballot.sol') .assert.containsText('div[title="browser/contracts/3_Ballot.sol"]', '3_Ballot.sol') .click('span[class^=dropdownCaret]') diff --git a/apps/remix-ide-e2e/src/tests/editor.test.ts b/apps/remix-ide-e2e/src/tests/editor.test.ts index 4cbca46dc4..f03cd804b4 100644 --- a/apps/remix-ide-e2e/src/tests/editor.test.ts +++ b/apps/remix-ide-e2e/src/tests/editor.test.ts @@ -12,6 +12,7 @@ module.exports = { 'Should zoom in editor': function (browser: NightwatchBrowser) { browser.waitForElementVisible('div[data-id="mainPanelPluginsContainer"]') + .click('*[data-id="treeViewTogglebrowser/contracts"]') .openFile('browser/contracts/1_Storage.sol') .waitForElementVisible('*[data-id="editorInput"]') .checkElementStyle('*[data-id="editorInput"]', 'font-size', '12px') diff --git a/apps/remix-ide-e2e/src/tests/publishContract.test.ts b/apps/remix-ide-e2e/src/tests/publishContract.test.ts index 193d2ea20b..b1f60f423f 100644 --- a/apps/remix-ide-e2e/src/tests/publishContract.test.ts +++ b/apps/remix-ide-e2e/src/tests/publishContract.test.ts @@ -16,6 +16,7 @@ module.exports = { browser .waitForElementVisible('#icon-panel', 10000) .clickLaunchIcon('fileExplorers') + .click('*[data-id="treeViewTogglebrowser/contracts"]') .openFile('browser/contracts/3_Ballot.sol') .verifyContracts(['Ballot']) .click('#publishOnIpfs')