From 36fa9cdd9fb26aa3fbd3a1f35b2d8344d1301c11 Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Thu, 22 Jul 2021 11:54:07 +0100 Subject: Specify a model while creating a VSP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6ed0a3c979e14c62ecd6488dfd70589df40636e9 Issue-ID: SDC-3656 Signed-off-by: André Schmid --- .../onap/sdc/frontend/ci/tests/pages/VspCreationModal.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'integration-tests/src/test/java') diff --git a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/VspCreationModal.java b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/VspCreationModal.java index e83eac4ea0..5950b2d895 100644 --- a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/VspCreationModal.java +++ b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/VspCreationModal.java @@ -59,6 +59,7 @@ public class VspCreationModal extends AbstractPageObject { selectCategory("resourceNewCategory.network l4+.common network resources"); fillDescription(vspName); selectNetworkPackageOnboardingProcedure(); + selectDefaultModel(); } /** @@ -96,6 +97,13 @@ public class VspCreationModal extends AbstractPageObject { setSelectIndex(XpathSelector.VENDOR_SELECT, 1); } + /** + * Selects the default model. + */ + public void selectDefaultModel() { + clickElement(XpathSelector.DEFAULT_MODEL_RADIO); + } + /** * Selects a category in the category list based on the option value. * @@ -109,7 +117,7 @@ public class VspCreationModal extends AbstractPageObject { * Selects the network package onboarding procedure option. */ public void selectNetworkPackageOnboardingProcedure() { - wrappingElement.findElement(By.xpath(XpathSelector.METHOD_RADIO.getXpath())).click(); + wrappingElement.findElement(By.xpath(XpathSelector.ONBOARDING_METHOD_RADIO.getXpath())).click(); } private void setInputValue(final XpathSelector inputTestId, final String value) { @@ -138,7 +146,8 @@ public class VspCreationModal extends AbstractPageObject { VENDOR_SELECT("new-vsp-vendor", "//select[@data-test-id='%s']"), CATEGORY_SELECT("new-vsp-category", "//select[@data-test-id='%s']"), DESCRIPTION_TXT("new-vsp-description", "//textarea[@data-test-id='%s']"), - METHOD_RADIO("new-vsp-creation-procedure-heat", "//input[@data-test-id='%s']/parent::label"), + ONBOARDING_METHOD_RADIO("new-vsp-creation-procedure-heat", "//input[@data-test-id='%s']/parent::label"), + DEFAULT_MODEL_RADIO("model-option-default", "//input[@data-test-id='%s']/parent::label"), CREATE_BTN("form-submit-button", "//*[@data-test-id='%s']"); @Getter -- cgit 1.2.3-korg