allow openPreviousVersionPopup test to handle modern UI aLaCarte dialog
[vid.git] / vid-automation / src / main / java / vid / automation / test / sections / deploy / DeployModernUIBase.java
index b9d1476..6b2c1ec 100644 (file)
@@ -7,6 +7,7 @@ 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 {
 
@@ -34,6 +35,11 @@ public abstract class DeployModernUIBase extends DeployDialogBase {
         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);
     }