Skip to content

Commit b77168c

Browse files
authored
Update the locator of 'workspace current status' according the changes on Dashboard
1 parent 3d17d7c commit b77168c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/e2e/pageobjects/dashboard/Workspaces.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import { Logger } from '../../utils/Logger';
1616
import { TIMEOUT_CONSTANTS } from '../../constants/TIMEOUT_CONSTANTS';
1717

1818
export enum WorkspaceStatusUI {
19-
Running = 'green',
20-
Stopped = 'grey'
19+
Running = 'Workspace status is Running',
20+
Stopped = 'Workspace status is Stopped'
2121
}
2222

2323
@injectable()
@@ -221,7 +221,7 @@ export class Workspaces {
221221
return By.xpath(
222222
`${
223223
this.getWorkspaceListItemLocator(workspaceName).value
224-
}//span[@data-testid='workspace-status-indicator']//*[local-name()='svg' and @fill='${workspaceStatus}']`
224+
}//span[@data-testid='workspace-status-indicator' and @aria-label='${workspaceStatus}']`
225225
);
226226
}
227227

0 commit comments

Comments
 (0)