change context menu item name to Create another one 58/99658/1
authorEylon Malin <eylon.malin@intl.att.com>
Mon, 16 Dec 2019 08:24:57 +0000 (10:24 +0200)
committerEylon Malin <eylon.malin@intl.att.com>
Mon, 16 Dec 2019 08:24:57 +0000 (10:24 +0200)
Issue-ID: VID-726
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Change-Id: I0bd8df7a36634c9a93aedbb1e8ec2c8114538f8e

vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts
vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.ts

index c510391..342818a 100644 (file)
@@ -7,7 +7,7 @@ import {AsyncInstantiationModel} from '../../support/jsonBuilders/models/asyncIn
 describe('Instantiation status', function () {
   var jsonBuilderInstantiationBuilder : JsonBuilder<AsyncInstantiationModel> = new JsonBuilder<AsyncInstantiationModel>();
   var asyncRes: Array<any>;
-  const contextMenuCreateAnotherOne = 'context-menu-recreate';
+  const contextMenuCreateAnotherOne = 'context-menu-create-another-one';
 
   beforeEach(() => {
       cy.clearSessionStorage();
@@ -126,6 +126,7 @@ describe('Instantiation status', function () {
     cy.openIframe('app/ui/#/instantiationStatus');
 
     clickOnTitleAndThenOnMenuWithJobId(jobId);
+    cy.get('.dropdown-menu').getElementByDataTestsId(contextMenuCreateAnotherOne).contains('Create another one');
     cy.get('.dropdown-menu').getElementByDataTestsId(contextMenuCreateAnotherOne).click();
     cy.location().should((loc) => {
       expect(loc.toString()).to.eq(`${vidBaseUrl}#/servicePlanning/RECREATE?serviceModelId=${serviceModelId}&jobId=${jobId}`);
index 58227c9..4f84b71 100644 (file)
@@ -59,8 +59,8 @@ export class InstantiationStatusComponent implements OnInit {
       visible: () =>  true,
     },
     {
-      name: "Recreate",
-      dataTestId: "context-menu-recreate",
+      name: "Create another one",
+      dataTestId: "context-menu-create-another-one",
       className: "fa-clone",
       click: (item: ServiceInfoModel) => this.instantiationStatusComponentService.recreate(item),
       enabled: (item: ServiceInfoModel) =>  this.instantiationStatusComponentService.isRecreateEnabled(item),