diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-10-23 17:10:52 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-10-24 08:25:01 +0000 |
commit | 607ea3dac27af31e3c8571b4f170dc7fd5c3b3b1 (patch) | |
tree | 357112f71483376c0965a87a0a4e93cb1facca98 /vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts | |
parent | d5ee5305be7f747aaddd3493485d6f029f72817b (diff) |
Cypress>=3.3.1 readFile() does not expect a relative file-path starting with /
See:
https://github.com/cypress-io/cypress/issues/4352#issuecomment-507963062
Issue-ID: VID-687
Change-Id: I4f3292e80d22d217d9bd33c685766efd5a8f4d8f
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts')
-rw-r--r-- | vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts index e150b93f7..a9cddfcbc 100644 --- a/vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts @@ -22,7 +22,7 @@ describe('Drawing board', function () { describe('duplicate', () => { it('delete vf module reduce the number of vf modules ', function () { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { cy.setReduxState(<any>res); cy.openIframe('app/ui/#/servicePlanning?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'); cy.drawingBoardPressAddButtonByElementName('node-2017-488_PASQUALE-vPE 0').get('i').should('have.class', 'fa-plus-circle'); @@ -40,7 +40,7 @@ describe('Drawing board', function () { }); it('create new vf module update the number of vf modules ', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { cy.setReduxState(<any>res); cy.openIframe('app/ui/#/servicePlanning?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'); cy.drawingBoardPressAddButtonByElementName('node-2017-488_PASQUALE-vPE 0').get('i').should('have.class', 'fa-plus-circle'); @@ -58,7 +58,7 @@ describe('Drawing board', function () { }); it('duplicate vnf multi - should update number of vf modules on left side and disable duplicate when created max', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { cy.setReduxState(<any>res); cy.openIframe('app/ui/#/servicePlanning?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'); cy.drawingBoardPressAddButtonByElementName('node-2017-488_PASQUALE-vPE 0').get('i').should('have.class', 'fa-plus-circle') @@ -267,7 +267,7 @@ describe('Drawing board', function () { }); xit('should display service model name', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { cy.setReduxState(<any>res); cy.openIframe('app/ui/#/servicePlanning?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'); cy.get('#service-model-name').contains('action-data'); @@ -275,7 +275,7 @@ describe('Drawing board', function () { }); it('should display icon and message if no vnf and vnfModules', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { res.global.drawingBoardStatus = "CREATE"; cy.setReduxState(<any>res); cy.openIframe('app/ui/#/servicePlanning?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'); @@ -290,7 +290,7 @@ describe('Drawing board', function () { }); it('should show alert on remove vnf with modules', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/serviceWithVnfAndVfModules.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/serviceWithVnfAndVfModules.json').then((res) => { cy.setReduxState(<any>res); cy.openIframe('app/ui/#/servicePlanning?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'); cy.drawingBoardTreeOpenContextMenuByElementDataTestId('node-69e09f68-8b63-4cc9-b9ff-860960b5db09-2017-488_PASQUALE-vPE 0'); @@ -309,7 +309,7 @@ describe('Drawing board', function () { }); it('should not show alert on remove vnf without modules', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/serviceWithVnfAndVfModules.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/serviceWithVnfAndVfModules.json').then((res) => { cy.setReduxState(<any>res); cy.openIframe('app/ui/#/servicePlanning?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'); cy.drawingBoardTreeOpenContextMenuByElementDataTestId('node-0903e1c0-8e03-4936-b5c2-260653b96413-2017-388_PASQUALE-vPE 1'); @@ -318,7 +318,7 @@ describe('Drawing board', function () { }); it('should show <Automatically Assigned> if ecomp is true', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { cy.setReduxState(<any>res); cy.openIframe('app/ui/#/servicePlanning?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'); cy.drawingBoardPressAddButtonByElementName('node-2017-388_PASQUALE-vPE 0').click({force: true}); @@ -338,7 +338,7 @@ describe('Drawing board', function () { it('should show model name if ecomp is false', () => { const vnfModelKey: string = '2017-488_PASQUALE-vPE 0', vnfModelName: string = '2017-488_PASQUALE-vPE'; - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { res.service.serviceHierarchy['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].vnfs[vnfModelKey].properties.ecomp_generated_naming = 'false'; cy.setReduxState(<any>res); cy.openIframe('app/ui/#/servicePlanning?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'); @@ -358,7 +358,7 @@ describe('Drawing board', function () { describe('add instance open a popup', () => { it('should add vfModule with popup with empty required instance name', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/serviceWithVnfAndVfModules.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/serviceWithVnfAndVfModules.json').then((res) => { res.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].vnfs["2017-488_PASQUALE-vPE 0"].properties.ecomp_generated_naming = "false"; res.service.serviceInstance["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].vnfs["2017-488_PASQUALE-vPE 0"].vfModules = []; cy.setReduxState(<any>res); @@ -369,7 +369,7 @@ describe('Drawing board', function () { }); it('should add vfModule with popup if empty required dynamic input', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/serviceWithVnfAndVfModules.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/serviceWithVnfAndVfModules.json').then((res) => { res.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].vnfs["2017-488_PASQUALE-vPE 0"].vfModules["2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_vRE_BV..module-1"].inputs["pasqualevpe0_bandwidth"].default = ''; res.service.serviceInstance["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].vnfs["2017-488_PASQUALE-vPE 0"].vfModules = []; cy.setReduxState(<any>res); @@ -385,7 +385,7 @@ describe('Drawing board', function () { describe('show warning and disable deploy button on vnf missing data', () => { it('show warning on vnf, and disable button, remove warning and enable button after edit', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/serviceWithVnfAndVfModules.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/serviceWithVnfAndVfModules.json').then((res) => { res.service.serviceInstance['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].existingVNFCounterMap['0903e1c0-8e03-4936-b5c2-260653b96413'] = 1; res.service.serviceInstance["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].validationCounter = 1; res.service.serviceInstance["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].vnfs["2017-388_PASQUALE-vPE 1"] = { @@ -426,7 +426,7 @@ describe('Drawing board', function () { describe('vnf should automatically displayed or not according its min value and its vf-modules min value', () => { it('vnf with min_instances value > 0 without required VF modules, should be created automatically without children', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => { res.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].vnfs["2017-488_PASQUALE-vPE 0"].properties['min_instances'] = 1; res.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].vnfs["2017-488_PASQUALE-vPE 0"].vfModules["2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0"].properties['initialCount'] = 0; res.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].vfModules["2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0"].properties['initialCount'] = 0; @@ -445,7 +445,7 @@ describe('Drawing board', function () { }); it('vnf with min_instances value > 1 with required VF modules, should be created automatically with children only once', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => { res.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].vnfs["2017-488_PASQUALE-vPE 0"].properties['min_instances'] = 3; cy.setReduxState(<any>res); cy.fillServicePopup().then(() => { @@ -461,7 +461,7 @@ describe('Drawing board', function () { it('vnf with min_instances value = 0 with required VF modules should be created automatically with its children', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => { res.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].vnfs["2017-488_PASQUALE-vPE 0"].properties['min_instances'] = 0; cy.setReduxState(<any>res); cy.fillServicePopup().then(() => { @@ -478,7 +478,7 @@ describe('Drawing board', function () { it('vnf without min_instances and without required VF modules, should not exist automatically in right side', () => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => { cy.setReduxState(<any>res); cy.fillServicePopup().then(() => { cy.visit("welcome.htm").then(() => { |