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