1 package vid.automation.test.sections.deploy;
3 import static org.hamcrest.MatcherAssert.assertThat;
4 import static org.hamcrest.Matchers.containsString;
6 import org.onap.sdc.ci.tests.utilities.GeneralUIUtils;
7 import org.openqa.selenium.WebElement;
8 import vid.automation.test.Constants;
9 import vid.automation.test.infra.Exists;
11 public abstract class DeployModernUIBase extends DeployDialogBase {
14 public void waitForDialogToLoad() {
18 String dialogTitle = "Set a new service instance";
20 public void assertTitle(){
21 WebElement modalTitle = GeneralUIUtils.getWebElementByTestID(Constants.CREATE_MODAL_TITLE_ID, 30);
22 assertThat(modalTitle.getText(), containsString(dialogTitle));
26 public void closeDialog(){
27 GeneralUIUtils.ultimateWait();
28 clickCancelButtonByTestID();
33 public void assertDialog() {
37 protected boolean isLcpRegionExist() {
38 return Exists.byTestId(Constants.ViewEdit.LCP_REGION_SELECT_TESTS_ID);
41 public void clickOwningEntitySelect() {
42 GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.OWNING_ENTITY_SELECT_TEST_ID);
45 public void clickProjectSelect() {
46 GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.PROJECT_SELECT_TEST_ID);