diff --git a/apps/remix-ide-e2e/src/tests/workspace.test.ts b/apps/remix-ide-e2e/src/tests/workspace.test.ts index 633b387365..41a3aa531a 100644 --- a/apps/remix-ide-e2e/src/tests/workspace.test.ts +++ b/apps/remix-ide-e2e/src/tests/workspace.test.ts @@ -415,7 +415,7 @@ module.exports = { }) .click('//*[@id="workspacesMenuDropdown"]/span/i') .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul') - .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[3]') // rename workspace_name + .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[4]') // rename workspace_name .useCss() .waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') .waitForElementVisible('*[data-id="modalDialogCustomPromptTextRename"]') diff --git a/apps/remix-ide-e2e/src/tests/workspace_git.test.ts b/apps/remix-ide-e2e/src/tests/workspace_git.test.ts index e2293f4153..7f09d2cca5 100644 --- a/apps/remix-ide-e2e/src/tests/workspace_git.test.ts +++ b/apps/remix-ide-e2e/src/tests/workspace_git.test.ts @@ -68,8 +68,8 @@ module.exports = { .clickLaunchIcon('filePanel') .useXpath() .click('//*[@id="workspacesMenuDropdown"]/span/i') - .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') - .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') + .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') + .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') .useCss() .waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') .click('[data-id="fileSystemModalDialogModalBody-react"]') @@ -95,8 +95,8 @@ module.exports = { browser .useXpath() .click('//*[@id="workspacesMenuDropdown"]/span/i') - .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') - .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') + .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') + .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') .useCss() .waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') .click('[data-id="fileSystemModalDialogModalBody-react"]') @@ -107,8 +107,8 @@ module.exports = { .waitForElementContainsText('[data-id="workspacesSelect"]', 'awesome-remix1') .useXpath() .click('//*[@id="workspacesMenuDropdown"]/span/i') - .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') - .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') + .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') + .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') .useCss() .waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') .click('[data-id="fileSystemModalDialogModalBody-react"]') @@ -119,7 +119,7 @@ module.exports = { .waitForElementContainsText('[data-id="workspacesSelect"]', 'awesome-remix2') .useXpath() .click('//*[@id="workspacesMenuDropdown"]/span/i') - .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') + .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') .useCss() .waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') .click('[data-id="fileSystemModalDialogModalBody-react"]') @@ -142,8 +142,8 @@ module.exports = { locateStrategy: 'xpath', }) .click('//*[@id="workspacesMenuDropdown"]/span/i') - .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') - .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') + .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') + .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') .useCss() .waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') .click('[data-id="fileSystemModalDialogModalBody-react"]') @@ -165,8 +165,8 @@ module.exports = { .waitForElementNotVisible('[data-id="workspaceGitPanel"]') .useXpath() .click('//*[@id="workspacesMenuDropdown"]/span/i') - .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') - .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[5]') + .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') + .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[6]') .useCss() .waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') .click('[data-id="fileSystemModalDialogModalBody-react"]') diff --git a/libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx b/libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx index 083c8b13ee..b0976a49f2 100644 --- a/libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx +++ b/libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx @@ -98,24 +98,24 @@ export function HamburgerMenu (props: HamburgerMenuProps) { tooltipText={} >
{ props.deleteAllWorkspaces() _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspaceDeleteAll']) props.hideIconsMenu(!showIconsMenu) }} - key={`workspacesDelete-fe-ws`} + key={`workspacesDeleteAll-fe-ws`} > @@ -152,7 +152,7 @@ export function HamburgerMenu (props: HamburgerMenuProps) {
- + - + - +