summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/integration/iFrames
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-02-18 16:58:16 +0200
committerIttay Stern <ittay.stern@att.com>2020-02-20 08:43:02 +0200
commite2a7abb45b953d405fc5aa1917f74e2da9f188c0 (patch)
tree725c3abc6b4e835e2c1aa01872358164ab2752ee /vid-webpack-master/cypress/integration/iFrames
parent2f60aa71dc51b6748ead045d363fd2f0d7f50286 (diff)
VNF's LCP regions found by Line-of-business (and owning-entity)
Depends on FLAG_2006_LCP_REGIONS_BY_LINE_OF_BUSINESS Issue-ID: VID-758 Change-Id: I7b5a67202a72fc6ea4afe0a5c1c60657c93bf690 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com> Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames')
-rw-r--r--vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts
index 3b42a1ca1..b9072139e 100644
--- a/vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts
+++ b/vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts
@@ -215,6 +215,35 @@ describe('A la carte', function () {
});
});
+ it(`Add ALaCarte vnf where FLAG_2006_LCP_REGIONS_BY_LINE_OF_BUSINESS`, () => {
+ cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => {
+ cy.setTestApiParamToGR();
+ res.service.serviceHierarchy['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].service.vidNotions.instantiationType = 'ALaCarte';
+ res.service.serviceHierarchy['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].service.inputs = null;
+ res.global['flags'] = {'FLAG_2006_LCP_REGIONS_BY_LINE_OF_BUSINESS': true};
+ cy.setReduxState(<any>res);
+ cy.openIframe('app/ui/#/servicePlanning?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd');
+
+ cy.getElementByDataTestsId('node-2017-488_PASQUALE-vPE 0-add-btn').click({force: true}).then(() => {
+ cy.selectDropdownOptionByText('productFamily', 'Emanuel');
+ cy.selectDropdownOptionByText('lineOfBusiness', 'zzz1');
+ cy.selectDropdownOptionByText('lcpRegion', 'foo-name');
+ cy.selectDropdownOptionByText('tenant', 'tenantID');
+ cy.selectPlatformValue('xxx1');
+ cy.getElementByDataTestsId('form-set').click({force: true}).then(() => {
+ const vnfMenuBtnDataTestId = 'node-69e09f68-8b63-4cc9-b9ff-860960b5db09-2017-488_PASQUALE-vPE 0-menu-btn';
+
+ cy.getElementByDataTestsId(vnfMenuBtnDataTestId).click({force: true}).then(() => {
+ cy.getElementByDataTestsId('context-menu-edit').click({force: true})
+ .getElementByDataTestsId("lineOfBusiness").should('contain', 'zzz1')
+ .getElementByDataTestsId("lcpRegion").should('contain', 'foo-name')
+ .getElementByDataTestsId("tenant").should('contain', 'tenantName')
+ });
+ });
+ })
+ });
+ });
+
it(`Add ALaCarte VfModule Without LcpRegion Tenant Id And Legacy`, () => {
addAlacarteVfmoduleByFlag(true, 'redux-a-la-carte-no-lcp-tenant.json');
});