Fixing workspace stopping with new dashboard (#19482)

7.30.x
Katerina Foniok 2021-04-01 20:22:19 +02:00 committed by GitHub
parent f6e8a385fd
commit 157267c3c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ export class Workspaces {
}
private getWorkspaceListItemLocator(workspaceName: string): string {
return `//table[@aria-label='Workspaces List Table']//tbody//tr[//a[text()='${workspaceName}']]`;
return `//tr[td/span/a[text()='${workspaceName}']]`;
}
private getWorkspaceStatusLocator(workspaceName: string, workspaceStatus: WorkspaceStatusUI): By {
@ -171,7 +171,7 @@ export class Workspaces {
}
private getActionsLocator(workspaceName: string): By {
return By.xpath(`${this.getWorkspaceListItemLocator(workspaceName)}//button[@aria-label='Actions']`);
return By.xpath(`${this.getWorkspaceListItemLocator(workspaceName)}/td/div/button[@aria-label='Actions']`);
}
private getExpandedActionsLocator(workspaceName: string): By {