make GR_API the default testApi in automation tests
[vid.git] / vid-webpack-master / cypress / integration / iFrames / instantiationStatus.e2e.ts
index c510391..cf727b5 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();
@@ -121,11 +121,12 @@ describe('Instantiation status', function () {
     //see cypress/support/jsonBuilders/mocks/jsons/asyncInstantiation.json id:8
     const jobId = '5c2cd8e5-27d0-42e3-85a1-85db5eaba459';
     const serviceModelId = 'e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0';
-    const vidBaseUrl = `http://localhost:8080/vid/serviceModels.htm`;
+    const vidBaseUrl = `${Cypress.config().baseUrl}/serviceModels.htm`;
 
     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}`);