use data id for delete ws

pull/3504/head
Aniket-Engg 2 years ago committed by yann300
parent e6d4bd0f40
commit 015ce64c82
  1. 17
      apps/remix-ide-e2e/src/tests/workspace.test.ts

@ -433,15 +433,14 @@ module.exports = {
'Should delete a workspace #group1': function (browser: NightwatchBrowser) {
browser
.switchWorkspace('workspace_name_1')//*[@id="workspacesMenuDropdown"]/span
.useXpath()
.click('//*[@id="workspacesMenuDropdown"]/span/i')
.click('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') // delete workspace_name_1
.waitForElementVisible('//*[@id="fileExplorerView"]/div[2]/div/div/div[2]')
.click('//*[@id="fileExplorerView"]/div[2]/div/div/div[3]/button')
.waitForElementVisible('//*[@id="workspacesSelect"]')
.click('//*[@id="workspacesSelect"]')
.useCss()
.switchWorkspace('workspace_name_1')
.click('*[data-id="workspaceDropdownMenuIcon"]')
.waitForElementVisible('*[data-id="wsdropdownMenu"]')
.click('*[data-id="workspacedelete"]') // delete workspace_name_1
.waitForElementVisible('*[data-id="fileSystemModalDialogModalFooter-react"]')
.click('*[data-id="fileSystem-modal-footer-ok-react"]')
.waitForElementVisible('*[data-id="workspacesSelect"]')
.click('*[data-id="workspacesSelect"]')
.waitForElementNotPresent(`[data-id="dropdown-item-workspace_name_1"]`)
.end()
},

Loading…
Cancel
Save