diff options
author | Yoav Schneiderman <yoav.schneiderman@intl.att.com> | 2019-12-29 14:33:21 +0200 |
---|---|---|
committer | Yoav Schneiderman <yoav.schneiderman@intl.att.com> | 2019-12-29 14:33:21 +0200 |
commit | ecfe8e2220e7c85d309e0171846832c312356ce1 (patch) | |
tree | 4828ab085a3e18d0e56914bd551bca1bf2f2981f /vid-webpack-master/cypress/integration | |
parent | 3795519f98415037e9d567af85f8eafd2948971d (diff) |
VFModule with missing data should show alert icon
Issue-ID: VID-737
Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com>
Change-Id: I02b4cc9defb87ab618e395c8c608f48a93461e6f
Diffstat (limited to 'vid-webpack-master/cypress/integration')
-rw-r--r-- | vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts index 1fcc82802..cf870b7b9 100644 --- a/vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/drawingBoard.e2e.ts @@ -301,6 +301,21 @@ describe('Drawing board', function () { cy.updateServiceShouldNotOverrideChild(); }); + + it('should show vfModule missong data icon ', () => { + const serviceModelId : string = 'f4d84bb4-a416-4b4e-997e-0059973630b9'; + let res = getReduxWithVNFMissingData(); + res.service.serviceInstance['f4d84bb4-a416-4b4e-997e-0059973630b9'].vnfs['2017-488_PASQUALE-vPE 0:0001'].vfModules['2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0']['2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0jkyqv'].isMissingData = true; + cy.setReduxState(<any>res); + cy.openIframe(`app/ui/#/servicePlanning?serviceModelId=${serviceModelId}`); + cy.getElementByDataTestsId('node-040e591e-5d30-4e0d-850f-7266e5a8e013-2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0-alert-icon').should('have.class', 'icon-alert'); + + cy.getElementByDataTestsId('node-040e591e-5d30-4e0d-850f-7266e5a8e013-2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0-menu-btn').eq(1).click({force:true}) + .getElementByDataTestsId('context-menu-edit').click() + .getElementByDataTestsId('form-set').click() + .getElementByDataTestsId('node-040e591e-5d30-4e0d-850f-7266e5a8e013-2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0-alert-icon').should('not.have.class', 'icon-alert'); + }); + xit('should display service model name', () => { cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { cy.setReduxState(<any>res); |