X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vid-webpack-master%2Fcypress%2Fintegration%2FiFrames%2FinstantiationStatus.e2e.ts;h=cf727b5ea186ec237e5a5cdf2f216236f6605add;hb=5e916090cf5642d3559c239b9acceb676941d3c2;hp=c510391cb06720fedbf2a81ecf00b4154c14f514;hpb=cbcca6ed1783b41eb10fbcaa456f3a1cfb8c9a39;p=vid.git diff --git a/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts index c510391cb..cf727b5ea 100644 --- a/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts @@ -7,7 +7,7 @@ import {AsyncInstantiationModel} from '../../support/jsonBuilders/models/asyncIn describe('Instantiation status', function () { var jsonBuilderInstantiationBuilder : JsonBuilder = new JsonBuilder(); var asyncRes: Array; - 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}`);