blob: acddc1b1130bae5e565ba52ae9cb0370ffa0af54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
package vid.automation.test.sections.deploy;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import org.onap.sdc.ci.tests.utilities.GeneralUIUtils;
import org.openqa.selenium.WebElement;
import vid.automation.test.Constants;
import vid.automation.test.infra.Exists;
import vid.automation.test.infra.Get;
public abstract class DeployModernUIBase extends DeployDialogBase {
@Override
public void waitForDialogToLoad() {
goToIframe();
}
String dialogTitle = "Set a new service instance";
public void assertTitle(){
WebElement modalTitle = GeneralUIUtils.getWebElementByTestID(Constants.CREATE_MODAL_TITLE_ID, dialogTitle, 30);
assertThat(modalTitle.getText(), containsString(dialogTitle));
}
@Override
public void closeDialog(){
GeneralUIUtils.ultimateWait();
clickCancelButtonByTestID();
goOutFromIframe();
GeneralUIUtils.ultimateWait();
}
@Override
public void assertDialog() {
assertTitle();
}
@Override
public String getModelVersionId() {
return Get.byTestId("model-item-value-uuid").getText();
}
protected boolean isLcpRegionExist() {
return Exists.byTestId(Constants.ViewEdit.LCP_REGION_SELECT_TESTS_ID);
}
public void clickOwningEntitySelect() {
GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.OWNING_ENTITY_SELECT_TEST_ID);
}
public void clickProjectSelect() {
GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.PROJECT_SELECT_TEST_ID);
}
public void clickPreviousInstantiationButton() {
GeneralUIUtils.clickOnElementByTestIdWithoutWait("ShowPreviousInstancesButton");
}
}
|