a-la-carte services new instantiation ui
[vid.git] / vid-automation / src / main / java / vid / automation / test / sections / DeployMacroDialog.java
1 package vid.automation.test.sections;
2
3 import org.onap.sdc.ci.tests.utilities.GeneralUIUtils;
4 import org.openqa.selenium.WebElement;
5 import vid.automation.test.Constants;
6
7 import static org.hamcrest.MatcherAssert.assertThat;
8 import static org.hamcrest.Matchers.containsString;
9
10 public class DeployMacroDialog extends DeployMacroDialogBase {
11     String dialogTitle = Constants.BrowseASDC.CREATE_SERVICE_INSTANCE_MACRO_MODAL;
12     @Override
13     public void assertTitle(){
14
15         WebElement modalTitle = GeneralUIUtils.getWebElementByTestID(Constants.CREATE_MODAL_TITLE_ID, 30);
16         assertThat(modalTitle.getText(), containsString(dialogTitle));
17     }
18     @Override
19     public void closeDialog(){
20         GeneralUIUtils.ultimateWait();
21         clickCancelButtonByTestID();
22         goOutFromIframe();
23     }
24
25     @Override
26     public void assertDialogExists() {
27         assertTitle();
28     }
29
30     @Override
31     public void clickOwningEntitySelect() {
32         GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.OWNING_ENTITY_SELECT_TEST_ID);
33     }
34
35     @Override
36     public void clickProjectSelect() {
37         GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.PROJECT_SELECT_TEST_ID);
38     }
39 }