|
|
@ -7,24 +7,24 @@ module.exports = { |
|
|
|
init(browser, done, 'http://127.0.0.1:8080', false) |
|
|
|
init(browser, done, 'http://127.0.0.1:8080', false) |
|
|
|
}, |
|
|
|
}, |
|
|
|
'Loads Icon\'s Panel': function (browser) { |
|
|
|
'Loads Icon\'s Panel': function (browser) { |
|
|
|
browser.waitForElementVisible('div[data-id="icon-panel"]', 10000) |
|
|
|
browser.waitForElementVisible('div[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
.waitForElementVisible('div[data-id="homeIcon"]') |
|
|
|
.waitForElementVisible('div[data-id="remixIdeHomeIcon"]') |
|
|
|
.waitForElementVisible('div[plugin="fileExplorers"]') |
|
|
|
.waitForElementVisible('div[plugin="fileExplorers"]') |
|
|
|
.waitForElementVisible('div[plugin="pluginManager"]') |
|
|
|
.waitForElementVisible('div[plugin="pluginManager"]') |
|
|
|
.waitForElementVisible('div[plugin="settings"]') |
|
|
|
.waitForElementVisible('div[plugin="settings"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Loads Side Panel': function (browser) { |
|
|
|
'Loads Side Panel': function (browser) { |
|
|
|
browser.waitForElementVisible('div[data-id="side-panel"]') |
|
|
|
browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]') |
|
|
|
.assert.containsText('h6[data-id="swapitTitle"]', 'FILE EXPLORERS') |
|
|
|
.assert.containsText('h6[data-id="sidePanelFileExplorerTitle"]', 'FILE EXPLORERS') |
|
|
|
.waitForElementVisible('div[data-id="fileExplorerInit"]') |
|
|
|
.waitForElementVisible('div[data-id="sidePanelFileExplorerTreeView"]') |
|
|
|
.waitForElementVisible('li[key="browser/4_Ballot_test.sol"]') |
|
|
|
.waitForElementVisible('li[key="browser/4_Ballot_test.sol"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Loads Main View': function (browser) { |
|
|
|
'Loads Main View': function (browser) { |
|
|
|
browser.waitForElementVisible('div[data-id="mainPanelPluginsContainer"]') |
|
|
|
browser.waitForElementVisible('div[data-id="mainPanelPluginsContainer"]') |
|
|
|
.waitForElementVisible('div[data-id="homeContainer"]') |
|
|
|
.waitForElementVisible('div[div[data-id="mainPanelHomeContainer"]') |
|
|
|
.waitForElementVisible('div[data-id="hpSections"]') |
|
|
|
.waitForElementVisible('div[data-id="homeContainerHpSections"]') |
|
|
|
.waitForElementVisible('div[data-id="terminalContainerDisplay"]') |
|
|
|
.waitForElementVisible('div[data-id="terminalContainerDisplay"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -35,37 +35,37 @@ module.exports = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Toggles Side Panel': function (browser) { |
|
|
|
'Toggles Side Panel': function (browser) { |
|
|
|
browser.waitForElementVisible('div[data-id="side-panel"]') |
|
|
|
browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]') |
|
|
|
.assert.containsText('h6[data-id="swapitTitle"]', 'FILE EXPLORERS') |
|
|
|
.assert.containsText('h6[data-id="sidePanelFileExplorerTitle"]', 'FILE EXPLORERS') |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
.assert.hidden('div[data-id="side-panel"]') |
|
|
|
.assert.hidden('div[data-id="remixIdeSidePanel"]') |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
.assert.visible('div[data-id="side-panel"]') |
|
|
|
.assert.visible('div[data-id="remixIdeSidePanel"]') |
|
|
|
.assert.containsText('h6[data-id="swapitTitle"]', 'FILE EXPLORERS') |
|
|
|
.assert.containsText('h6[data-id="sidePanelFileExplorerTitle"]', 'FILE EXPLORERS') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Toggles Terminal': function (browser) { |
|
|
|
'Toggles Terminal': function (browser) { |
|
|
|
browser.waitForElementVisible('div[data-id="terminal_container"]') |
|
|
|
browser.waitForElementVisible('div[data-id="terminalContainer"]') |
|
|
|
.assert.visible('div[data-id="terminalContainerDisplay"]') |
|
|
|
.assert.visible('div[data-id="terminalContainerDisplay"]') |
|
|
|
.click('i[data-id="toggleTerminal"]') |
|
|
|
.click('i[data-id="homeContainerTerminalToggle"]') |
|
|
|
.checkElementStyle('div[data-id="toggleTerminalMenu"]', 'height', '35px') |
|
|
|
.checkElementStyle('div[data-id="homeContainerTerminalToggleMenu"]', 'height', '35px') |
|
|
|
.click('i[data-id="toggleTerminal"]') |
|
|
|
.click('i[data-id="homeContainerTerminalToggle"]') |
|
|
|
.assert.visible('div[data-id="terminalContainerDisplay"]') |
|
|
|
.assert.visible('div[data-id="terminalContainerDisplay"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Toggles File Explorer Browser': function (browser) { |
|
|
|
'Toggles File Explorer Browser': function (browser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementVisible('div[data-id="fileExplorerInit"]') |
|
|
|
.waitForElementVisible('div[data-id="sidePanelFileExplorerTreeView"]') |
|
|
|
.assert.visible('ul[key="browser"]') |
|
|
|
.assert.visible('ul[key="browser"]') |
|
|
|
.click('div[data-id="toggle_browser"]') |
|
|
|
.click('div[data-id="fileExplorerTreeTogglebrowser"]') |
|
|
|
.assert.hidden('ul[key="browser"]') |
|
|
|
.assert.hidden('ul[key="browser"]') |
|
|
|
.click('div[data-id="toggle_browser"]') |
|
|
|
.click('div[data-id="fileExplorerTreeTogglebrowser"]') |
|
|
|
.assert.visible('ul[key="browser"]') |
|
|
|
.assert.visible('ul[key="browser"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Switch Tabs using tabs icon': function (browser) { |
|
|
|
'Switch Tabs using tabs icon': function (browser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementVisible('div[data-id="fileExplorerInit"]') |
|
|
|
.waitForElementVisible('div[data-id="sidePanelFileExplorerTreeView"]') |
|
|
|
.switchFile('browser/3_Ballot.sol') |
|
|
|
.switchFile('browser/3_Ballot.sol') |
|
|
|
.assert.containsText('div[title="browser/3_Ballot.sol"]', '3_Ballot.sol') |
|
|
|
.assert.containsText('div[title="browser/3_Ballot.sol"]', '3_Ballot.sol') |
|
|
|
.click('span[class^=dropdownCaret]') |
|
|
|
.click('span[class^=dropdownCaret]') |
|
|
|