From 157267c3c9e070fee64e0c8fbd39c1cc60040a13 Mon Sep 17 00:00:00 2001 From: Katerina Foniok Date: Thu, 1 Apr 2021 20:22:19 +0200 Subject: [PATCH] Fixing workspace stopping with new dashboard (#19482) --- tests/e2e/pageobjects/dashboard/Workspaces.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/pageobjects/dashboard/Workspaces.ts b/tests/e2e/pageobjects/dashboard/Workspaces.ts index c71048a0fb..eba42bc0a9 100644 --- a/tests/e2e/pageobjects/dashboard/Workspaces.ts +++ b/tests/e2e/pageobjects/dashboard/Workspaces.ts @@ -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 {