Skip to content

Commit 76cdcee

Browse files
author
Sergey Skorik
authored
Fix locators in DasboardWorkspace page object
* fix locators for finding workspace by name from the Workspaces list and status of workspace
1 parent fe6d621 commit 76cdcee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

selenium/che-selenium-test/src/main/java/org/eclipse/che/selenium/pageobject/dashboard/DashboardWorkspace.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private interface Locators {
9999
"//div[contains(@class,'che-toolbar')]//span[contains(text(),'%s')]";
100100
String WORKSPACES_LIST = "//ng-transclude[@class='che-list-content']";
101101
String WORKSPACE_ITEM_NAME =
102-
"//div[contains(@class, 'che-list-item-name')]/span[contains(text(),'%s')]";
102+
"//div[contains(@class, 'workspace-name-clip')]//div[contains(@data-str, '%s')]";
103103
String EXPORT_WORKSPACE_BTN =
104104
"//button[contains(@class, 'che-button')]/span[text()='Export as a file']";
105105
String DOWNLOAD_WORKSPACE_BTN = "//che-button-default[@che-button-title='download']";
@@ -116,7 +116,7 @@ private interface Locators {
116116
String RUN_WORKSPACE_BTN = "//button/span[text()='Run']";
117117
String STOP_WORKSPACE_BTN = "//button/span[contains(text(),'Stop')]";
118118
String DELETE_WORKSPACE_BTN = "//button/span[text()='Delete']";
119-
String STATE_WORKSPACE = "//span[contains(@class, '%s')]";
119+
String STATE_WORKSPACE = "//div[contains(@class, 'workspace-status')]/span[text()='%s']";
120120
String WORKSPACE_TITLE = "//div[contains(@class,'toolbar-info')]/span[text()='%s']";
121121
String DELETE_BTN_DIALOG_WIND =
122122
"//button[@ng-click='cheConfirmDialogController.hide()']//span[text()='Delete']";

0 commit comments

Comments
 (0)