|
|
@ -18,6 +18,7 @@ module.exports = { |
|
|
|
.click('*[data-id="fileExplorerNewFilecreateNewFile"]') |
|
|
|
.click('*[data-id="fileExplorerNewFilecreateNewFile"]') |
|
|
|
.pause(1000) |
|
|
|
.pause(1000) |
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
.waitForElementVisible('*[data-id$="fileExplorerTreeItemInput"]') |
|
|
|
|
|
|
|
.pause(1000) |
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.CONTROL + 'v') |
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.CONTROL + 'v') |
|
|
|
.pause(1000) |
|
|
|
.pause(1000) |
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
|
.sendKeys('*[data-id$="fileExplorerTreeItemInput"]', browser.Keys.ENTER) |
|
|
@ -93,7 +94,7 @@ module.exports = { |
|
|
|
.rightClick('*[data-id="treeViewUltreeViewMenu"]') |
|
|
|
.rightClick('*[data-id="treeViewUltreeViewMenu"]') |
|
|
|
.saveScreenshot('./reports/screenshot/file_explorer_context_menu.png') |
|
|
|
.saveScreenshot('./reports/screenshot/file_explorer_context_menu.png') |
|
|
|
.click('*[data-id="contextMenuItempaste"]') |
|
|
|
.click('*[data-id="contextMenuItempaste"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemCopy_README.txt"]', 7000) |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemREADME1.txt"]', 7000) |
|
|
|
}, |
|
|
|
}, |
|
|
|
'Should copy file and paste in contracts with right click and it will contain a new file #group1 ': function (browser: NightwatchBrowser) { |
|
|
|
'Should copy file and paste in contracts with right click and it will contain a new file #group1 ': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
@ -103,7 +104,7 @@ module.exports = { |
|
|
|
.click('[data-id="contextMenuItemcopy"]') |
|
|
|
.click('[data-id="contextMenuItemcopy"]') |
|
|
|
.rightClick('*[data-id="treeViewLitreeViewItemcontracts"]') |
|
|
|
.rightClick('*[data-id="treeViewLitreeViewItemcontracts"]') |
|
|
|
.click('*[data-id="contextMenuItempaste"]') |
|
|
|
.click('*[data-id="contextMenuItempaste"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/Copy_README.txt"]', 7000) |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/README1.txt"]', 7000) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// folder copy paste tests
|
|
|
|
// folder copy paste tests
|
|
|
|
'Should copy folder and paste in root with right click and it will contain a copied folder #group1 ': function (browser: NightwatchBrowser) { |
|
|
|
'Should copy folder and paste in root with right click and it will contain a copied folder #group1 ': function (browser: NightwatchBrowser) { |
|
|
|