disable test in firefox

pull/4767/head
Joseph Izang 4 months ago
parent 117a976d9b
commit a774b28376
  1. 9
      apps/remix-ide-e2e/src/tests/file_explorer_multiselect.test.ts

@ -8,6 +8,7 @@ module.exports = {
}, },
'Should select multiple items in file explorer #group1': function (browser: NightwatchBrowser) { 'Should select multiple items in file explorer #group1': function (browser: NightwatchBrowser) {
console.log(browser)
const selectedElements = [] const selectedElements = []
browser browser
.openFile('contracts') .openFile('contracts')
@ -26,11 +27,7 @@ module.exports = {
}, },
'Should drag and drop multiple files in file explorer to tests folder #group1': function (browser: NightwatchBrowser) { 'Should drag and drop multiple files in file explorer to tests folder #group1': function (browser: NightwatchBrowser) {
const selectedElements = [] const selectedElements = []
if (browser.options.desiredCapabilities?.browserName === 'firefox') { if (browser.options.desiredCapabilities?.browserName === 'chrome') {
console.log('Skipping test for firefox')
browser.end()
return;
} else {
browser browser
.click({ selector: '//*[@data-id="treeViewUltreeViewMenu"]', locateStrategy: 'xpath' }) .click({ selector: '//*[@data-id="treeViewUltreeViewMenu"]', locateStrategy: 'xpath' })
.click({ selector: '//*[@data-id="treeViewLitreeViewItemcontracts/1_Storage.sol"]', locateStrategy: 'xpath' }) .click({ selector: '//*[@data-id="treeViewLitreeViewItemcontracts/1_Storage.sol"]', locateStrategy: 'xpath' })
@ -54,6 +51,8 @@ module.exports = {
.perform(() => done()) .perform(() => done())
}) })
}) })
} else {
browser.end()
} }
}, },
'should drag and drop multiple files and folders in file explorer to contracts folder #group3': function (browser: NightwatchBrowser) { 'should drag and drop multiple files and folders in file explorer to contracts folder #group3': function (browser: NightwatchBrowser) {

Loading…
Cancel
Save