remove "Previous instantiotion" button from service popup. 02/100302/3
authorAlexey Sandler <alexey.sandler@intl.att.com>
Wed, 15 Jan 2020 07:33:19 +0000 (09:33 +0200)
committerAlexey Sandler <alexey.sandler@intl.att.com>
Wed, 15 Jan 2020 09:12:34 +0000 (11:12 +0200)
Issue-ID: VID-739
Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
Change-Id: I562da185a59b593112dc50b403c20e671c7f7a48
Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
vid-app-common/src/main/java/org/onap/vid/properties/Features.java
vid-automation/src/main/java/vid/automation/test/infra/Features.java
vid-automation/src/main/java/vid/automation/test/sections/deploy/DeployModernUIBase.java
vid-automation/src/main/java/vid/automation/test/test/BrowseASDCTest.java
vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts
vid-webpack-master/cypress/support/jsonBuilders/mocks/jsons/flags.cypress.json
vid-webpack-master/src/app/shared/components/genericFormPopup/generic-form-popup.component.html
vid-webpack-master/src/app/shared/components/genericFormPopup/generic-form-popup.component.ts
vid-webpack-master/src/app/shared/services/featureFlag/feature-flags.service.ts

index a421103..8a944a9 100644 (file)
@@ -81,9 +81,9 @@ public enum Features implements Feature {
     FLAG_2002_IDENTIFY_INVARIANT_MACRO_UUID_BY_BACKEND,
     FLAG_2004_INSTANTIATION_STATUS_FILTER,
     FLAG_2004_CREATE_ANOTHER_INSTANCE_FROM_TEMPLATE,
-    FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER,
     FLAG_2004_INSTANTIATION_TEMPLATES_POPUP,
     FLAG_2002_UNLIMITED_MAX,
+
     ;
 
 
index 9f132e8..6be6870 100644 (file)
@@ -55,7 +55,6 @@ public enum Features implements Feature {
     FLAG_2002_VFM_UPGRADE_ADDITIONAL_OPTIONS,
     FLAG_2002_IDENTIFY_INVARIANT_MACRO_UUID_BY_BACKEND,
     FLAG_2004_CREATE_ANOTHER_INSTANCE_FROM_TEMPLATE,
-    FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER,
     FLAG_2002_UNLIMITED_MAX,
     ;
 
index acddc1b..0b8122c 100644 (file)
@@ -53,8 +53,4 @@ public abstract class DeployModernUIBase extends DeployDialogBase {
         GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.PROJECT_SELECT_TEST_ID);
     }
 
-    public void clickPreviousInstantiationButton() {
-        GeneralUIUtils.clickOnElementByTestIdWithoutWait("ShowPreviousInstancesButton");
-    }
-
 }
index f6b883a..84dbf11 100644 (file)
@@ -6,7 +6,6 @@ import static org.testng.Assert.assertFalse;
 import static vid.automation.test.infra.Features.FLAG_1908_COLLECTION_RESOURCE_NEW_INSTANTIATION_UI;
 import static vid.automation.test.infra.Features.FLAG_2002_ANY_ALACARTE_BESIDES_EXCLUDED_NEW_INSTANTIATION_UI;
 import static vid.automation.test.infra.Features.FLAG_2002_IDENTIFY_INVARIANT_MACRO_UUID_BY_BACKEND;
-import static vid.automation.test.infra.Features.FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER;
 import static vid.automation.test.infra.Features.FLAG_5G_IN_NEW_INSTANTIATION_UI;
 import static vid.automation.test.infra.Features.FLAG_NETWORK_TO_ASYNC_INSTANTIATION;
 import static vid.automation.test.infra.Features.FLAG_SHOW_ORCHESTRATION_TYPE;
@@ -338,26 +337,6 @@ public class BrowseASDCTest extends CreateInstanceDialogBaseTest {
         return deployMacroDialog;
     }
 
-    @Test
-    @FeatureTogglingTest(FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER)
-    public void testClickPreviousInstantiationsInCreationDialog() {
-        try {
-            String serviceId = "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd";
-            DeployModernUIMacroDialog deployMacroDialog = getDeployModernUIMacroDialog(serviceId);
-            deployMacroDialog.clickPreviousInstantiationButton();
-
-            //exit form deploy dialog
-            goOutFromIframe();
-            //go into Instantiation Status page
-            goToIframe();
-
-            InstantiationStatusPage.verifyInstantiationStatusFilterValue(serviceId);
-        }
-        finally {
-            goOutFromIframe();
-        }
-    }
-
     private BrowseASDCPage registerSimulatorAndGoToBrowseSDC() {
         SimulatorApi.registerExpectation(SimulatorApi.RegistrationStrategy.CLEAR_THEN_SET,
                 "ecompportal_getSessionSlotCheckInterval.json",
index de29313..06f5a23 100644 (file)
@@ -95,13 +95,6 @@ describe('Service popup', function () {
       });
     });
 
-    it('when open service popup should show showPrevious button', () => {
-      cy.openPopupIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true');
-      cy.getElementByDataTestsId('ShowPreviousInstancesButton').contains('Previous Instantiation').click();
-
-    })
-
-
   });
 });
 
index 531bad3..c774020 100644 (file)
@@ -19,7 +19,6 @@
   "FLAG_1911_INSTANTIATION_ORDER_BUTTON_IN_ASYNC_ALACARTE": false,
   "FLAG_2002_VNF_PLATFORM_MULTI_SELECT" : true,
   "FLAG_2002_VFM_UPGRADE_ADDITIONAL_OPTIONS": true,
-  "FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER": true,
   "FLAG_2004_INSTANTIATION_STATUS_FILTER": true,
   "FLAG_2004_INSTANTIATION_TEMPLATES_POPUP" : false,
   "FLAG_2002_UNLIMITED_MAX" : true,
index 6bb1ff1..0313574 100644 (file)
           type="button" class="btn btn-success submit"
           (click)="openTemplateModal()"
         ><span>Template</span></button>
-        <button
-          *ngIf="isShowPreviousInstantiationBtn"
-          [attr.data-tests-id]="'ShowPreviousInstancesButton'"
-          type="button" class="btn btn-success submit"
-          (click)="formPopupDetails.onOtherAction(formPopupDetails.that, dynamicForm)"
-        ><span>Previous Instantiation</span></button>
         <button
           [attr.data-tests-id]="'cancelButton'"
           type="button" class="btn btn-default cancel"
index 19ea9b9..7368dd6 100644 (file)
@@ -47,7 +47,6 @@ export class GenericFormPopupComponent extends DialogComponent<PopupModel, boole
   type: PopupType;
   uuidData: UUIDData;
   showTemplateBtn: boolean = false;
-  isShowPreviousInstantiationBtn: boolean = false;
   isUpdateMode: boolean;
   node: ITreeNode = null;
   hasGeneralApiError: boolean = false;
@@ -118,7 +117,6 @@ export class GenericFormPopupComponent extends DialogComponent<PopupModel, boole
       };
 
       this.showTemplateBtn = this._genericFormPopupService.shouldShowTemplateBtn(isInstantiationTemplateExists);
-      this.isShowPreviousInstantiationBtn = !!this._store.getState().global.flags["FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER"];
 
       this.uuidData.popupService.closeDialogEvent.subscribe((that) => {
         this.closeDialog(that);
index cccade8..54fdc0c 100644 (file)
@@ -15,7 +15,6 @@ export enum Features {
   FLAG_2002_VFM_UPGRADE_ADDITIONAL_OPTIONS ='FLAG_2002_VFM_UPGRADE_ADDITIONAL_OPTIONS',
   FLAG_2004_INSTANTIATION_STATUS_FILTER ='FLAG_2004_INSTANTIATION_STATUS_FILTER',
   FLAG_2004_CREATE_ANOTHER_INSTANCE_FROM_TEMPLATE = 'FLAG_2004_CREATE_ANOTHER_INSTANCE_FROM_TEMPLATE',
-  FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER ='FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER',
   FLAG_2004_INSTANTIATION_TEMPLATES_POPUP = 'FLAG_2004_INSTANTIATION_TEMPLATES_POPUP'
 }