aboutsummaryrefslogtreecommitdiffstats
path: root/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java
diff options
context:
space:
mode:
Diffstat (limited to 'ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java')
-rw-r--r--ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java28
1 files changed, 23 insertions, 5 deletions
diff --git a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java
index e9789ca850..6e0cfe563d 100644
--- a/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java
+++ b/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/pages/CompositionPage.java
@@ -79,15 +79,33 @@ public class CompositionPage extends GeneralPageElements {
}
public static void moveToInputsScreen() throws Exception {
- OpenPagesMenu();
+ OpenPagesMenu(2);
GeneralUIUtils.clickOnElementByTestId(DataTestIdEnum.CompositionScreenEnum.MENU_INPUTS.getValue());
- GeneralUIUtils.ultimateWait();
+// GeneralUIUtils.ultimateWait();
+ }
+
+ public static void moveToPropertiesScreen() throws Exception {
+ OpenPagesMenu(2);
+ GeneralUIUtils.clickOnElementByTestId(DataTestIdEnum.CompositionScreenEnum.MENU_PROPERTIES_ASSIGNMENT.getValue());
+// GeneralUIUtils.ultimateWait();
+ }
+
+ public static void moveToOnboardScreen() throws Exception {
+ OpenPagesMenu(0);
+ GeneralUIUtils.clickOnElementByTestId(DataTestIdEnum.CompositionScreenEnum.MENU_ONBOARD.getValue());
+// GeneralUIUtils.ultimateWait();
+ }
+
+ public static void moveToHomeScreen() throws Exception {
+ OpenPagesMenu(0);
+ GeneralUIUtils.clickOnElementByTestId(DataTestIdEnum.CompositionScreenEnum.MENU_HOME.getValue());
+// GeneralUIUtils.ultimateWait();
}
- private static void OpenPagesMenu() {
+ private static void OpenPagesMenu(int counter) {
Actions actions = new Actions(GeneralUIUtils.getDriver());
List<WebElement> triangleList = GeneralUIUtils.getWebElementsListByClassName(DataTestIdEnum.CompositionScreenEnum.MENU_TRIANGLE_DROPDOWN.getValue());
- WebElement pagesMenu = triangleList.get(2);
+ WebElement pagesMenu = triangleList.get(counter);
actions.moveToElement(pagesMenu).perform();
}
@@ -100,7 +118,7 @@ public class CompositionPage extends GeneralPageElements {
SetupCDTest.getExtendTest().log(Status.INFO, String.format("Changing component version to %s", version));
canvasManager.clickOnCanvaElement(element);
GeneralUIUtils.clickOnElementByTestId(DataTestIdEnum.CompositionScreenEnum.CHANGE_VERSION.getValue());
- GeneralUIUtils.ultimateWait();
+// GeneralUIUtils.ultimateWait();
Select selectlist = new Select(GeneralUIUtils.getWebElementByTestID(DataTestIdEnum.CompositionScreenEnum.CHANGE_VERSION.getValue()));
while (selectlist.getOptions().size() == 0) {
selectlist = new Select(GeneralUIUtils.getWebElementByTestID(DataTestIdEnum.CompositionScreenEnum.CHANGE_VERSION.getValue()));