Fix defaultLayout test

pull/668/head
ioedeveloper 4 years ago
parent 4c911ab63e
commit 914ea80d40
  1. 2
      .env
  2. 20
      apps/remix-ide-e2e/src/tests/defaultLayout.test.ts

@ -1,4 +1,4 @@
gist_token=41ecc30018511d0eaecd7fa4bd479f3263b61a48 gist_token=<token>
account_passphrase=<passphrase> account_passphrase=<passphrase>
account_password=<password> account_password=<password>
NODE_OPTIONS=--max-old-space-size=2048 NODE_OPTIONS=--max-old-space-size=2048

@ -20,10 +20,10 @@ module.exports = {
browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]') browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]')
.assert.containsText('h6[data-id="sidePanelSwapitTitle"]', 'FILE EXPLORERS') .assert.containsText('h6[data-id="sidePanelSwapitTitle"]', 'FILE EXPLORERS')
.waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') .waitForElementVisible('div[data-id="filePanelFileExplorerTree"]')
.waitForElementVisible('li[key="browser/contracts"]') .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/contracts"]')
.waitForElementVisible('li[key="browser/scripts"]') .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/scripts"]')
.waitForElementVisible('li[key="browser/tests"]') .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/tests"]')
.waitForElementVisible('li[key="browser/README.txt"]') .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/README.txt"]')
}, },
'Loads Main View': function (browser: NightwatchBrowser) { 'Loads Main View': function (browser: NightwatchBrowser) {
@ -61,17 +61,17 @@ module.exports = {
'Toggles File Explorer Browser': function (browser: NightwatchBrowser) { 'Toggles File Explorer Browser': function (browser: NightwatchBrowser) {
browser browser
.waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') .waitForElementVisible('div[data-id="filePanelFileExplorerTree"]')
.assert.visible('ul[key="browser"]') .waitForElementPresent('[data-id="treeViewLitreeViewItembrowser/contracts"]')
.click('div[data-id="treeViewTogglebrowser"]') .click('[data-path="browser"]')
.assert.hidden('ul[key="browser"]') .waitForElementNotPresent('[data-id="treeViewLitreeViewItembrowser/contracts"]')
.click('div[data-id="treeViewTogglebrowser"]') .click('[data-path="browser"]')
.assert.visible('ul[key="browser"]') .waitForElementPresent('[data-id="treeViewLitreeViewItembrowser/contracts"]')
}, },
'Switch Tabs using tabs icon': function (browser: NightwatchBrowser) { 'Switch Tabs using tabs icon': function (browser: NightwatchBrowser) {
browser browser
.waitForElementVisible('div[data-id="filePanelFileExplorerTree"]') .waitForElementVisible('div[data-id="filePanelFileExplorerTree"]')
.click('*[data-id="treeViewTogglebrowser/contracts"]') .click('[data-id="treeViewLitreeViewItembrowser/contracts"]')
.openFile('browser/contracts/3_Ballot.sol') .openFile('browser/contracts/3_Ballot.sol')
.assert.containsText('div[title="browser/contracts/3_Ballot.sol"]', '3_Ballot.sol') .assert.containsText('div[title="browser/contracts/3_Ballot.sol"]', '3_Ballot.sol')
.click('span[class^=dropdownCaret]') .click('span[class^=dropdownCaret]')

Loading…
Cancel
Save