aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java
diff options
context:
space:
mode:
authorAmichai Hemli <ah0398@intl.att.com>2019-03-18 10:07:02 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-18 10:07:02 +0000
commita036637a4d466662128cde1823816578e76c69e0 (patch)
treed58add45a75701717e67de676463fc6b15068f9d /vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java
parent756a9c041981e05a3f5bd740ebc0d3fc22579003 (diff)
parent66af8b9b391879be78660d6ccb0a1f1f9340b423 (diff)
Merge "Merge automation from ECOMP's repository"
Diffstat (limited to 'vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java')
-rw-r--r--vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java19
1 files changed, 12 insertions, 7 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 633feb83d..e10c872ee 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
@@ -1,19 +1,16 @@
package vid.automation.test.sections;
import org.junit.Assert;
-import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils;
+import org.onap.sdc.ci.tests.utilities.GeneralUIUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import vid.automation.test.Constants;
+import vid.automation.test.infra.Features;
import vid.automation.test.infra.Get;
import vid.automation.test.infra.SelectOption;
-import vid.automation.test.infra.Wait;
-import org.hamcrest.core.Is;
import static org.hamcrest.core.Is.is;
-import java.util.List;
-
/**
* Created by itzikliderman on 13/06/2017.
*/
@@ -70,8 +67,12 @@ public class ViewEditPage extends VidBasePage {
return this;
}
- public ViewEditPage selectLCPRegion(String lcpRegion){
- SelectOption.byValue(lcpRegion, Constants.ViewEdit.LCP_REGION_SELECT_TESTS_ID);
+ public ViewEditPage selectLcpRegion(String lcpRegion, String cloudOwner){
+ selectLcpRegion(lcpRegion);
+ if (Features.FLAG_1810_CR_ADD_CLOUD_OWNER_TO_MSO_REQUEST.isActive()) {
+ String selectedOption = SelectOption.getSelectedOption(Constants.ViewEdit.LCP_REGION_SELECT_TESTS_ID);
+ Assert.assertEquals(lcpRegion + " (" + cloudOwner.toUpperCase() + ")", selectedOption);
+ }
return this;
}
@@ -91,6 +92,10 @@ public class ViewEditPage extends VidBasePage {
return this;
}
+ public VidBasePage clickActivateFabricConfigurationButton() {
+ GeneralUIUtils.clickOnElementByTestId(Constants.ViewEdit.ACTIVATE_FABRIC_CONFIGURATION_BUTTON_TEST_ID, 60);
+ return this;
+ }
public VidBasePage clickInfoButton() {
GeneralUIUtils.clickOnElementByTestId(Constants.ViewEdit.INFOSERVICEBUTTON, 30);
return this;