diff options
author | imamSidero <imam.hussain@est.tech> | 2023-09-05 11:06:25 +0100 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2023-09-06 14:58:12 +0000 |
commit | 5c1294eb8e2dc00cae4ef21d6111e0fa18fc2caa (patch) | |
tree | 977b9f5f20d48acbe7c66b4227dd984fb370ab63 /integration-tests/src/test/java/org | |
parent | 6531ae8151c52407d61b380534026e2d67f62753 (diff) |
Provide user to specify the ouput name while declaring the atrributes
User specified output name is provided on declare output functionality
Issue-ID: SDC-4616
Signed-off-by: Imam hussain <imam.hussain@est.tech>
Change-Id: Ic0cd50f9dde2482f5fbb2363cdc83d8fcf09f48f
Diffstat (limited to 'integration-tests/src/test/java/org')
-rw-r--r-- | integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/AttributesTabComponent.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/AttributesTabComponent.java b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/AttributesTabComponent.java index e06d702afe..207c79a49e 100644 --- a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/AttributesTabComponent.java +++ b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/AttributesTabComponent.java @@ -45,6 +45,9 @@ public class AttributesTabComponent extends AbstractPageObject { } waitForElementVisibility(By.xpath(XpathSelector.ATTRIBUTES_CHECKBOX.getXpath(attributeName))).click(); waitToBeClickable(By.xpath(XpathSelector.DECLARE_OUTPUT_BTN.getXpath())).click(); + final By setInputNameLocator = By.xpath(XpathSelector.SET_INPUT_NAME_FIELD.getXpath()); + final WebElement inputNameField = waitForElementVisibility(setInputNameLocator, 5); + waitToBeClickable(By.xpath(XpathSelector.INPUT_NAME_SAVE_BTN.getXpath())).click(); waitForAddedOutputNotification(); } @@ -82,6 +85,8 @@ public class AttributesTabComponent extends AbstractPageObject { ATTRIBUTES_CHECKBOX("//checkbox[@data-tests-id='%s']"), DECLARE_OUTPUT_BTN("declare-button declare-output", "//button[@data-tests-id='%s']"), INSTANCE_SPAN("//div[contains(@class,'table-rows-header')]"), + SET_INPUT_NAME_FIELD("//*[@id=\"myText\"]"), + INPUT_NAME_SAVE_BTN("//button[@data-tests-id='Save']"), ADDED_OUTPUT_NOTIFICATION("tab-indication", "//div[@data-tests-id='Outputs']/div[contains(@class, '%s')]"); @Getter |