|
|
@ -15,7 +15,7 @@ module.exports = { |
|
|
|
init(browser, done) |
|
|
|
init(browser, done) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should create a new file `5_New_contract.sol` in file explorer': !function (browser: NightwatchBrowser) { |
|
|
|
'Should create a new file `5_New_contract.sol` in file explorer #group1': function (browser: NightwatchBrowser) { |
|
|
|
browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]') |
|
|
|
browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.assert.containsText('h6[data-id="sidePanelSwapitTitle"]', 'FILE EXPLORER') |
|
|
|
.assert.containsText('h6[data-id="sidePanelSwapitTitle"]', 'FILE EXPLORER') |
|
|
@ -28,7 +28,7 @@ module.exports = { |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem5_New_contract.sol"]', 7000) |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem5_New_contract.sol"]', 7000) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should rename `5_New_contract.sol` to 5_Renamed_Contract.sol': !function (browser: NightwatchBrowser) { |
|
|
|
'Should rename `5_New_contract.sol` to 5_Renamed_Contract.sol #group1': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem5_New_contract.sol"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem5_New_contract.sol"]') |
|
|
|
.click('*[data-id="treeViewLitreeViewItem5_New_contract.sol"]') |
|
|
|
.click('*[data-id="treeViewLitreeViewItem5_New_contract.sol"]') |
|
|
@ -36,14 +36,14 @@ module.exports = { |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem5_Renamed_Contract.sol"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem5_Renamed_Contract.sol"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should delete file `5_Renamed_Contract.sol` from file explorer': !function (browser: NightwatchBrowser) { |
|
|
|
'Should delete file `5_Renamed_Contract.sol` from file explorer #group1': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem5_Renamed_Contract.sol"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItem5_Renamed_Contract.sol"]') |
|
|
|
.removeFile('5_Renamed_Contract.sol', 'default_workspace') |
|
|
|
.removeFile('5_Renamed_Contract.sol', 'default_workspace') |
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItem5_Renamed_Contract.sol"') |
|
|
|
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItem5_Renamed_Contract.sol"') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should create a new folder': !function (browser: NightwatchBrowser) { |
|
|
|
'Should create a new folder #group1': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemREADME.txt"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemREADME.txt"]') |
|
|
|
.click('li[data-id="treeViewLitreeViewItemREADME.txt"]') // focus on root directory
|
|
|
|
.click('li[data-id="treeViewLitreeViewItemREADME.txt"]') // focus on root directory
|
|
|
@ -55,7 +55,7 @@ module.exports = { |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemBrowser_Tests"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemBrowser_Tests"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should rename Browser_Tests folder to Browser_E2E_Tests': !function (browser: NightwatchBrowser) { |
|
|
|
'Should rename Browser_Tests folder to Browser_E2E_Tests #group1': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemBrowser_Tests"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemBrowser_Tests"]') |
|
|
|
.click('*[data-id="treeViewLitreeViewItemBrowser_Tests"]') |
|
|
|
.click('*[data-id="treeViewLitreeViewItemBrowser_Tests"]') |
|
|
@ -63,7 +63,7 @@ module.exports = { |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemBrowser_E2E_Tests"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemBrowser_E2E_Tests"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should delete Browser_E2E_Tests folder': !function (browser: NightwatchBrowser) { |
|
|
|
'Should delete Browser_E2E_Tests folder #group1': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemBrowser_E2E_Tests"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemBrowser_E2E_Tests"]') |
|
|
|
.rightClickCustom('[data-path="Browser_E2E_Tests"]') |
|
|
|
.rightClickCustom('[data-path="Browser_E2E_Tests"]') |
|
|
@ -99,7 +99,7 @@ module.exports = { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should open local filesystem explorer #group1': function (browser: NightwatchBrowser) { |
|
|
|
'Should open local filesystem explorer #group2': !function (browser: NightwatchBrowser) { |
|
|
|
browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]') |
|
|
|
browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.waitForElementVisible('*[data-id="filePanelFileExplorerTree"]') |
|
|
|
.waitForElementVisible('*[data-id="filePanelFileExplorerTree"]') |
|
|
|