diff options
author | Ittay Stern <ittay.stern@att.com> | 2020-01-06 11:45:35 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-01-06 11:45:35 +0000 |
commit | 794218e76ef533adf10815c789c513721336ea4d (patch) | |
tree | 7ce99e2602f63a1bc75647e1d8143b78a5499195 /vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts | |
parent | fd03c225db2e436e5dc957d9e50b5b89646d3d1c (diff) | |
parent | 39a8639ddd4f9821c207cfa53264a475dcca8cf2 (diff) |
Merge "Hide Templates entry point when no instances"
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts')
-rw-r--r-- | vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts index 83e6b4dbc..4b27ad008 100644 --- a/vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts @@ -30,6 +30,17 @@ describe('Service popup', function () { }); }); + it('a-la-carte service instantiation popup should show Template button ', function () { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res1) => { + res1.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].service.vidNotions.instantiationType = 'ALaCarte'; + res1.global.flags = {}; + res1.global.flags["FLAG_2004_INSTANTIATION_TEMPLATES_POPUP"] = true; + cy.setReduxState(<any>res1); + cy.openPopupIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true&hasTemplate=true'); + cy.getElementByDataTestsId('templateButton').should('be.visible') + }); + }); + it('a-la-carte service instantiation popup has Instance name as required', function () { cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res1) => { res1.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].service.vidNotions.instantiationType = 'ALaCarte'; @@ -39,6 +50,7 @@ describe('Service popup', function () { cy.openPopupIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true'); cy.isElementContainsAttr('form-set', 'disabled'); cy.get('label').contains('Instance name:').should('have.class', 'required'); + cy.getElementByDataTestsId('templateButton').should('not.be.visible') }); }); |