diff --git a/apps/remix-ide-e2e/src/tests/workspace.test.ts b/apps/remix-ide-e2e/src/tests/workspace.test.ts index c49550d582..fd4da44038 100644 --- a/apps/remix-ide-e2e/src/tests/workspace.test.ts +++ b/apps/remix-ide-e2e/src/tests/workspace.test.ts @@ -350,7 +350,7 @@ module.exports = { selector: '//i[@data-icon="workspaceDropdownMenuIcon"]', locateStrategy: 'xpath', }) - .moveToElement('//*[@id="workspacesMenuDropdown"]/span/i', 0, 0) + .moveToElement('//*[@id="workspacesMenuDropdown"]/span/i', 0, 1) .waitForElementVisible('//*[@id="workspacesMenuDropdown"]/div/ul') .click('//*[@id="workspacesMenuDropdown"]/div/ul/a[1]') // rename workspace_name .useCss() @@ -375,7 +375,7 @@ module.exports = { browser .switchWorkspace('workspace_name_1') .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 .useCss() .waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')