From 2152a9a43767cdd486fd8c93894f66a05083f53c Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Wed, 5 May 2021 15:31:04 +0100 Subject: Support for selection of capabilities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib1a3e3e1a59fc84c62620932c408e231acf77024 Issue-ID: SDC-3580 Signed-off-by: André Schmid --- .../workspace/CompositionRequirementsCapabilitiesTab.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'integration-tests/src/test/java/org') diff --git a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/CompositionRequirementsCapabilitiesTab.java b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/CompositionRequirementsCapabilitiesTab.java index bee2d3a339..2ea7437416 100644 --- a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/CompositionRequirementsCapabilitiesTab.java +++ b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/CompositionRequirementsCapabilitiesTab.java @@ -67,11 +67,11 @@ public class CompositionRequirementsCapabilitiesTab extends AbstractPageObject { } private void loadRequirements() { - final List webElements = waitForAllElementsVisibility(By.xpath("//checkbox[@data-tests-id]")); + final List webElements = waitForAllElementsVisibility(By.xpath(XpathSelector.REQUIREMENT_EXTERNAL_CHECKBOX.getXPath())); checkboxExternalRequirementMap = new HashMap<>(); webElements.forEach(webElement -> { final String dataTestsId = webElement.getAttribute("data-tests-id"); - checkboxExternalRequirementMap.put(dataTestsId.substring("checkbox-mark-as-external-".length()), webElement); + checkboxExternalRequirementMap.put(dataTestsId.substring("checkbox-external-req-".length()), webElement); }); } @@ -94,7 +94,8 @@ public class CompositionRequirementsCapabilitiesTab extends AbstractPageObject { private enum XpathSelector { REQ_CAPABILITIES_TAB("//req-capabilities-tab"), CAPABILITIES_ACCORDION("//div[@data-tests-id='Capabilities-accordion']"), - REQUIREMENTS_ACCORDION("//div[@data-tests-id='Requirements-accordion']"); + REQUIREMENTS_ACCORDION("//div[@data-tests-id='Requirements-accordion']"), + REQUIREMENT_EXTERNAL_CHECKBOX("//checkbox[starts-with(@data-tests-id, 'checkbox-external-req-')]"); private final String xPath; -- cgit 1.2.3-korg