From 773737acc423d262e31243e5bca3d9d350408a5e Mon Sep 17 00:00:00 2001 From: Sergey Skorik Date: Fri, 13 Oct 2017 13:04:46 +0300 Subject: [PATCH] changed locators for finding workspace by name from the Workspaces list and status of workspace --- .../che/selenium/pageobject/dashboard/DashboardWorkspace.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selenium/che-selenium-test/src/main/java/org/eclipse/che/selenium/pageobject/dashboard/DashboardWorkspace.java b/selenium/che-selenium-test/src/main/java/org/eclipse/che/selenium/pageobject/dashboard/DashboardWorkspace.java index af56bf18671..ac352a16e6a 100644 --- a/selenium/che-selenium-test/src/main/java/org/eclipse/che/selenium/pageobject/dashboard/DashboardWorkspace.java +++ b/selenium/che-selenium-test/src/main/java/org/eclipse/che/selenium/pageobject/dashboard/DashboardWorkspace.java @@ -99,7 +99,7 @@ private interface Locators { "//div[contains(@class,'che-toolbar')]//span[contains(text(),'%s')]"; String WORKSPACES_LIST = "//ng-transclude[@class='che-list-content']"; String WORKSPACE_ITEM_NAME = - "//div[contains(@class, 'che-list-item-name')]/span[contains(text(),'%s')]"; + "//div[contains(@class, 'workspace-name-clip')]//div[contains(@data-str, '%s')]"; String EXPORT_WORKSPACE_BTN = "//button[contains(@class, 'che-button')]/span[text()='Export as a file']"; String DOWNLOAD_WORKSPACE_BTN = "//che-button-default[@che-button-title='download']"; @@ -116,7 +116,7 @@ private interface Locators { String RUN_WORKSPACE_BTN = "//button/span[text()='Run']"; String STOP_WORKSPACE_BTN = "//button/span[contains(text(),'Stop')]"; String DELETE_WORKSPACE_BTN = "//button/span[text()='Delete']"; - String STATE_WORKSPACE = "//span[contains(@class, '%s')]"; + String STATE_WORKSPACE = "//div[contains(@class, 'workspace-status')]/span[text()='%s']"; String WORKSPACE_TITLE = "//div[contains(@class,'toolbar-info')]/span[text()='%s']"; String DELETE_BTN_DIALOG_WIND = "//button[@ng-click='cheConfirmDialogController.hide()']//span[text()='Delete']";