diff options
author | Ofir Sonsino <os0695@intl.att.com> | 2018-08-12 12:20:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-08-12 12:20:55 +0000 |
commit | 91b057331b92ecf7f3c2d495681b05295dc8346c (patch) | |
tree | 0ce3f821ada8ad518784f7f9869db4b537ba3237 /vid-automation/src/main/java/vid/automation/test/sections/DeployMacroDialog.java | |
parent | 9152b2ae03c4751b492a219993d85d522c58b383 (diff) | |
parent | 4a4dcc5185f8ba5a28c7f9fef509f32c0c2389e6 (diff) |
Merge "vid-automation selenium tests"
Diffstat (limited to 'vid-automation/src/main/java/vid/automation/test/sections/DeployMacroDialog.java')
-rw-r--r-- | vid-automation/src/main/java/vid/automation/test/sections/DeployMacroDialog.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/vid/automation/test/sections/DeployMacroDialog.java b/vid-automation/src/main/java/vid/automation/test/sections/DeployMacroDialog.java new file mode 100644 index 00000000..ae757333 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/DeployMacroDialog.java @@ -0,0 +1,39 @@ +package vid.automation.test.sections; + +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; +import vid.automation.test.Constants; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.containsString; + +public class DeployMacroDialog extends DeployMacroDialogBase { + String dialogTitle = Constants.BrowseASDC.CREATE_SERVICE_INSTANCE_MACRO_MODAL; + @Override + public void assertTitle(){ + + WebElement modalTitle = GeneralUIUtils.getWebElementByTestID(Constants.CREATE_MODAL_TITLE_ID, 30); + assertThat(modalTitle.getText().toLowerCase(), containsString(dialogTitle)); + } + @Override + public void closeDialog(){ + GeneralUIUtils.ultimateWait(); + clickCancelButtonByTestID(); + goOutFromIframe(); + } + + @Override + public void assertDialogExists() { + assertTitle(); + } + + @Override + public void clickOwningEntitySelect() { + GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.OWNING_ENTITY_SELECT_TEST_ID); + } + + @Override + public void clickProjectSelect() { + GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.PROJECT_SELECT_TEST_ID); + } +} |