|
|
|
@ -117,69 +117,68 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
'Should add deep tree with buttons #group3': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.waitForElementVisible('div[data-id="remixIdeSidePanel"]') |
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
.waitForElementVisible('*[data-id="filePanelFileExplorerTree"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep1') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep1"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep2') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep1/deep2"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep3') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep1/deep2/deep3"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFile"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFile"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep4.sol') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep1/deep2/deep3/deep4.sol"]') |
|
|
|
|
.waitForElementVisible('div[data-id="remixIdeSidePanel"]') |
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
.waitForElementVisible('*[data-id="filePanelFileExplorerTree"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep1') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep1"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep2') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep1/deep2"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep3') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep1/deep2/deep3"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFile"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFile"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep4.sol') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep1/deep2/deep3/deep4.sol"]') |
|
|
|
|
// click on root to focus
|
|
|
|
|
.click('li[data-id="treeViewLitreeViewItemREADME.txt"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep5') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep5"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep6') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep5/deep6"]') |
|
|
|
|
.click('li[data-id="treeViewLitreeViewItemREADME.txt"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep5') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep5"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep6') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemdeep5/deep6"]') |
|
|
|
|
// focus on contracts
|
|
|
|
|
.click('li[data-id="treeViewLitreeViewItemcontracts"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep7') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/deep7"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep8') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/deep7/deep8"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFile"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFile"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep9.sol') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/deep7/deep8/deep9.sol"]') |
|
|
|
|
.end() |
|
|
|
|
.click('li[data-id="treeViewLitreeViewItemcontracts"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep7') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/deep7"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep8') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/deep7/deep8"]') |
|
|
|
|
.waitForElementVisible('[data-id="fileExplorerNewFilecreateNewFile"]') |
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFile"]') |
|
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', 'deep9.sol') |
|
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/deep7/deep8/deep9.sol"]') |
|
|
|
|
.end() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|