Skip to content

Commit fcb7b09

Browse files
authored
Update 'Open workspace' button locator in E2E tests (#23772)
1 parent f203602 commit fcb7b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/pageobjects/dashboard/Workspaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class Workspaces {
240240
}
241241

242242
private getOpenButtonLocator(workspaceName: string): By {
243-
return By.xpath(`${this.getWorkspaceListItemLocator(workspaceName).value}//td[@data-key=6]//button[text()='Open']`);
243+
return By.xpath(`(${this.getWorkspaceListItemLocator(workspaceName).value}//td//button[text()='Open'])[last()]`);
244244
}
245245

246246
private getOpenWorkspaceDetailsLinkLocator(workspaceName: string): By {

0 commit comments

Comments
 (0)