e2e test for instantiation template
[vid.git] / vid-automation / src / main / java / vid / automation / test / test / ModernUITestBase.java
1 package vid.automation.test.test;
2
3 import static vid.automation.test.infra.ModelInfo.pasqualeVmxVpeBvService488Annotations;
4
5 import com.google.common.collect.ImmutableList;
6 import java.util.UUID;
7 import org.jetbrains.annotations.NotNull;
8 import vid.automation.test.infra.ModelInfo;
9 import vid.automation.test.sections.ViewEditPage;
10
11 public class ModernUITestBase extends VidBaseTestCase {
12
13     protected ViewEditPage viewEditPage = new ViewEditPage();
14
15     protected void prepareServicePreset(ModelInfo modelInfo, boolean deploy) {
16         String subscriberId = "e433710f-9217-458d-a79d-1c7aff376d89";
17
18         if (deploy) {
19             registerExpectationForServiceDeployment(
20                 ImmutableList.of(
21                     modelInfo,
22                     pasqualeVmxVpeBvService488Annotations
23                 ),
24                 subscriberId, null);
25         } else {
26             registerExpectationForServiceBrowseAndDesign(ImmutableList.of(modelInfo), subscriberId);
27         }
28     }
29
30     @NotNull
31     protected String uuid() {
32         return UUID.randomUUID().toString();
33     }
34 }