diff options
author | 2021-04-21 16:18:12 +0100 | |
---|---|---|
committer | 2021-06-08 06:57:14 +0000 | |
commit | 75cfc6b2eb67ede9e1d0d69ba1c411b534df9000 (patch) | |
tree | 1d1d091d2015853f53073d63a0f7a95c8cd91812 /integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/ResourcePropertiesAssignmentTab.java | |
parent | c81c95bf4879c805aa91c60653fc0e781ff2d4e9 (diff) |
Integration Tests - Add inputs to a base service
Issue-ID: SDC-3609
Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech>
Change-Id: Iaf281999d29317e5c8caff2f2da765551571dc0f
Diffstat (limited to 'integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/ResourcePropertiesAssignmentTab.java')
-rw-r--r-- | integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/ResourcePropertiesAssignmentTab.java | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/ResourcePropertiesAssignmentTab.java b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/ResourcePropertiesAssignmentTab.java index b237b17272..32a20dd138 100644 --- a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/ResourcePropertiesAssignmentTab.java +++ b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/ResourcePropertiesAssignmentTab.java @@ -309,6 +309,26 @@ public class ResourcePropertiesAssignmentTab extends AbstractPageObject { } /** + * select property + */ + public void selectProperty(String propertyName){ + isPropertyPresent(propertyName); + waitToBeClickable(By.xpath(ResourcePropertiesAssignmentTab.XpathSelector.PROPERTY_CHECKBOX.getXpath(propertyName))).click(); + } + + public void loadComponentInstanceProperties(final String instanceName){ + waitToBeClickable(By.xpath(ResourcePropertiesAssignmentTab.XpathSelector.INSTANCE_SPAN.getXpath(instanceName))).click(); + } + + public void clickOnDeclareInput(){ + waitToBeClickable(By.xpath(ResourcePropertiesAssignmentTab.XpathSelector.DECLARE_INPUT_BTN.getXpath())).click(); + } + + public void loadCompositionTab(){ + waitToBeClickable(By.xpath(ResourcePropertiesAssignmentTab.XpathSelector.COMPOSITION_TAB.getXpath())).click(); + } + + /** * Enum that contains identifiers and xpath expressions to elements related to the enclosing page object. */ @AllArgsConstructor @@ -329,7 +349,10 @@ public class ResourcePropertiesAssignmentTab extends AbstractPageObject { INPUT_PROPERTY("//input[@data-tests-id='value-prop-%s']"), SELECT_INPUT_PROPERTY("//select[@data-tests-id='value-prop-%s']"), PROPERTY_TYPES("//*[contains(@data-tests-id, 'propertyType')]"), - PROPERTY_NAMES("//*[contains(@data-tests-id, 'propertyName')]"); + PROPERTY_NAMES("//*[contains(@data-tests-id, 'propertyName')]"), + DECLARE_INPUT_BTN("declare-button declare-input", "//button[@data-tests-id='%s']"), + COMPOSITION_TAB("Composition", "//div[contains(@class,'tab') and contains(text(), '%s')]"), + INSTANCE_SPAN("//span[@data-tests-id='%s']"); @Getter private String id; |