Skip to content

Commit

Permalink
Update the locator of 'workspace current status' according the change…
Browse files Browse the repository at this point in the history
…s on Dashboard
  • Loading branch information
artaleks9 authored Dec 5, 2023
1 parent 3d17d7c commit b77168c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/pageobjects/dashboard/Workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import { Logger } from '../../utils/Logger';
import { TIMEOUT_CONSTANTS } from '../../constants/TIMEOUT_CONSTANTS';

export enum WorkspaceStatusUI {
Running = 'green',
Stopped = 'grey'
Running = 'Workspace status is Running',
Stopped = 'Workspace status is Stopped'
}

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

Expand Down

0 comments on commit b77168c

Please sign in to comment.