summaryrefslogtreecommitdiffstats
path: root/vid-automation
diff options
context:
space:
mode:
authorEinat Vinouze <einat.vinouze@intl.att.com>2020-03-09 11:40:29 +0200
committerEinat Vinouze <einat.vinouze@intl.att.com>2020-03-09 11:40:29 +0200
commit617318d1b7700c9d9720255b2bf54f6ce401c8c9 (patch)
tree1dbdfc55a7236e5c0c1693e0e21711bcb802fbd0 /vid-automation
parentd46b13b53c422a4f3c01fb02012c3315aff6bde6 (diff)
allow platform multi-selection for network
Issue-ID: VID-785 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Change-Id: I38e32dc5c1d5630d8cd7d5c18e964875be38002d
Diffstat (limited to 'vid-automation')
-rw-r--r--vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java15
-rw-r--r--vid-automation/src/main/java/vid/automation/test/test/VidBaseTestCase.java2
2 files changed, 8 insertions, 9 deletions
diff --git a/vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java b/vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java
index 3943af0e8..e61d57f2e 100644
--- a/vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java
+++ b/vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java
@@ -2,7 +2,6 @@ package vid.automation.test.sections;
import static org.hamcrest.core.Is.is;
-import java.util.List;
import org.junit.Assert;
import org.onap.sdc.ci.tests.utilities.GeneralUIUtils;
import org.openqa.selenium.By;
@@ -15,13 +14,13 @@ import vid.automation.test.infra.SelectOption;
public class ViewEditPage extends VidBasePage {
public ViewEditPage selectNodeInstanceToAdd(String vnfName) {
selectFromDropdownByTestId(Constants.ViewEdit.VNF_OPTION_TEST_ID_PREFIX + vnfName,
- Constants.ViewEdit.ADD_VNF_BUTTON_TEST_ID);
+ Constants.ViewEdit.ADD_VNF_BUTTON_TEST_ID);
return this;
}
public ViewEditPage selectVfModuleToAdd(String vfModuleName) {
selectFromDropdownByTestId(Constants.ViewEdit.VF_MODULE_OPTION_TEST_ID_PREFIX + vfModuleName,
- Constants.ViewEdit.ADD_VF_MODULE_BUTTON_TEST_ID);
+ Constants.ViewEdit.ADD_VF_MODULE_BUTTON_TEST_ID);
return this;
}
@@ -44,7 +43,7 @@ public class ViewEditPage extends VidBasePage {
public ViewEditPage selectVolumeGroupToAdd(String volumeGroupName) {
selectFromDropdownByTestId(Constants.ViewEdit.VOLUME_GROUP_OPTION_TEST_ID_PREFIX + volumeGroupName,
- Constants.ViewEdit.ADD_VOLUME_GROUP_BUTTON_TEST_ID);
+ Constants.ViewEdit.ADD_VOLUME_GROUP_BUTTON_TEST_ID);
return this;
}
@@ -56,7 +55,7 @@ public class ViewEditPage extends VidBasePage {
public ViewEditPage selectNetworkToAdd(String networkName) {
selectFromDropdownByTestId(Constants.ViewEdit.NETWORK_OPTION_TEST_ID_PREFIX + networkName,
- Constants.ViewEdit.ADD_NETWORK_BUTTON_TEST_ID);
+ Constants.ViewEdit.ADD_NETWORK_BUTTON_TEST_ID);
return this;
}
@@ -77,7 +76,7 @@ public class ViewEditPage extends VidBasePage {
public ViewEditPage selectTenant(String tenant){
SelectOption.byValue(tenant, Constants.ViewEdit.TENANT_SELECT_TESTS_ID);
- // GeneralUIUtils.clickOnElementByTestId(Constants.ViewEdit.TENANT_SELECT_TESTS_ID, 60);
+ // GeneralUIUtils.clickOnElementByTestId(Constants.ViewEdit.TENANT_SELECT_TESTS_ID, 60);
return this;
}
@@ -131,8 +130,8 @@ public class ViewEditPage extends VidBasePage {
// return this;
// }
- public ViewEditPage selectPlatform(List<String> platformList) {
- SelectOption.selectOptionsFromMultiselectById("multi-selectPlatform", platformList);
+ public ViewEditPage selectPlatform(String platform) {
+ SelectOption.byValue(platform, Constants.OwningEntity.PLATFORM_SELECT_TEST_ID);
return this;
}
}
diff --git a/vid-automation/src/main/java/vid/automation/test/test/VidBaseTestCase.java b/vid-automation/src/main/java/vid/automation/test/test/VidBaseTestCase.java
index 74ceec635..842142751 100644
--- a/vid-automation/src/main/java/vid/automation/test/test/VidBaseTestCase.java
+++ b/vid-automation/src/main/java/vid/automation/test/test/VidBaseTestCase.java
@@ -357,7 +357,7 @@ public class VidBaseTestCase extends SetupCDTest{
viewEditPage.selectSuppressRollback(suppressRollback);
if(platform != null){
- viewEditPage.selectPlatform(ImmutableList.of(platform));
+ viewEditPage.selectPlatform(platform);
}
viewEditPage.clickConfirmButton();
viewEditPage.assertMsoRequestModal(Constants.ViewEdit.MSO_SUCCESSFULLY_TEXT);