fix firefox e2e

pull/3023/head
Joseph Izang 2 years ago committed by Aniket
parent 7b80ae1b7f
commit af8c049730
  1. 4
      apps/remix-ide-e2e/src/tests/workspace.test.ts

@ -350,7 +350,7 @@ module.exports = {
selector: '//i[@data-icon="workspaceDropdownMenuIcon"]', selector: '//i[@data-icon="workspaceDropdownMenuIcon"]',
locateStrategy: 'xpath', locateStrategy: 'xpath',
}) })
.moveToElement('//*[@id="workspacesMenuDropdown"]/span/i', 0, 0) .moveToElement('//*[@id="workspacesMenuDropdown"]/span/i', 0, 1)
.waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul') .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul')
.click('//*[@id="workspacesMenuDropdown"]/div/ul/a[1]') // rename workspace_name .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[1]') // rename workspace_name
.useCss() .useCss()
@ -375,7 +375,7 @@ module.exports = {
browser browser
.switchWorkspace('workspace_name_1') .switchWorkspace('workspace_name_1')
.useXpath() .useXpath()
.moveToElement('//*[@id="workspacesMenuDropdown"]/span/i', 0, 0) .moveToElement('//*[@id="workspacesMenuDropdown"]/span/i', 0, 1)
.click('//*[@id="workspacesMenuDropdown"]/div/ul/a[2]') // delete workspace_name_1 .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[2]') // delete workspace_name_1
.useCss() .useCss()
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') .waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')

Loading…
Cancel
Save