|
|
|
@ -11,7 +11,6 @@ module.exports = { |
|
|
|
|
const selectedElements = [] |
|
|
|
|
browser |
|
|
|
|
.openFile('contracts') |
|
|
|
|
.pause() |
|
|
|
|
// .click({ selector: '//*[@data-id="treeViewLitreeViewItemcontracts/1_Storage.sol"]', locateStrategy: 'xpath' })
|
|
|
|
|
.click({ selector: '//*[@data-id="treeViewDivtreeViewItemcontracts/1_Storage.sol"]', locateStrategy: 'xpath' }) |
|
|
|
|
.findElement({ selector: '//*[@data-id="treeViewDivtreeViewItemcontracts/2_Owner.sol"]', locateStrategy: 'xpath' }, (el) => { |
|
|
|
@ -29,6 +28,7 @@ module.exports = { |
|
|
|
|
'Should drag and drop multiple files in file explorer to tests folder #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
const selectedElements = [] |
|
|
|
|
browser |
|
|
|
|
.click({ selector: '//*[@data-id="treeViewUltreeViewMenu"]', locateStrategy: 'xpath' }) |
|
|
|
|
.click({ selector: '//*[@data-id="treeViewLitreeViewItemcontracts/1_Storage.sol"]', locateStrategy: 'xpath' }) |
|
|
|
|
.findElement({ selector: '//*[@data-id="treeViewLitreeViewItemcontracts/2_Owner.sol"]', locateStrategy: 'xpath' }, (el) => { |
|
|
|
|
selectedElements.push(el) |
|
|
|
@ -39,6 +39,7 @@ module.exports = { |
|
|
|
|
(el: any) => { |
|
|
|
|
const id = (el as any).value.getId() |
|
|
|
|
browser |
|
|
|
|
.pause() |
|
|
|
|
.waitForElementVisible('li[data-id="treeViewLitreeViewItemtests"]') |
|
|
|
|
.dragAndDrop('li[data-id="treeViewLitreeViewItemcontracts/1_Storage.sol"]', id) |
|
|
|
|
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|