e2e tests fixed

sl
aniket-engg 4 years ago committed by Aniket
parent f7460bcb42
commit b92b45060a
  1. 6
      apps/remix-ide-e2e/src/tests/defaultLayout.test.ts
  2. 1
      apps/remix-ide-e2e/src/tests/editor.test.ts
  3. 1
      apps/remix-ide-e2e/src/tests/publishContract.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]')

@ -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')

@ -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')

Loading…
Cancel
Save