From 914ea80d4045ab82b0d9e9b0efccfee56f9b59d3 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 14 Jan 2021 15:54:07 +0100 Subject: [PATCH] Fix defaultLayout test --- .env | 2 +- .../src/tests/defaultLayout.test.ts | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.env b/.env index e22d6a6ab8..8db17993d7 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -gist_token=41ecc30018511d0eaecd7fa4bd479f3263b61a48 +gist_token= account_passphrase= account_password= NODE_OPTIONS=--max-old-space-size=2048 \ No newline at end of file diff --git a/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts b/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts index 94ab72bd2b..3378a49c85 100644 --- a/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts +++ b/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts @@ -20,10 +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"]') - .waitForElementVisible('li[key="browser/scripts"]') - .waitForElementVisible('li[key="browser/tests"]') - .waitForElementVisible('li[key="browser/README.txt"]') + .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/contracts"]') + .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/scripts"]') + .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/tests"]') + .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/README.txt"]') }, 'Loads Main View': function (browser: NightwatchBrowser) { @@ -61,17 +61,17 @@ module.exports = { 'Toggles File Explorer Browser': function (browser: NightwatchBrowser) { browser .waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') - .assert.visible('ul[key="browser"]') - .click('div[data-id="treeViewTogglebrowser"]') - .assert.hidden('ul[key="browser"]') - .click('div[data-id="treeViewTogglebrowser"]') - .assert.visible('ul[key="browser"]') + .waitForElementPresent('[data-id="treeViewLitreeViewItembrowser/contracts"]') + .click('[data-path="browser"]') + .waitForElementNotPresent('[data-id="treeViewLitreeViewItembrowser/contracts"]') + .click('[data-path="browser"]') + .waitForElementPresent('[data-id="treeViewLitreeViewItembrowser/contracts"]') }, 'Switch Tabs using tabs icon': function (browser: NightwatchBrowser) { browser .waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') - .click('*[data-id="treeViewTogglebrowser/contracts"]') + .click('[data-id="treeViewLitreeViewItembrowser/contracts"]') .openFile('browser/contracts/3_Ballot.sol') .assert.containsText('div[title="browser/contracts/3_Ballot.sol"]', '3_Ballot.sol') .click('span[class^=dropdownCaret]')