diff options
author | 2020-03-03 16:15:39 +0200 | |
---|---|---|
committer | 2020-03-08 11:43:12 +0200 | |
commit | 742d6d369b761220e565f39f2fa09413141ad93f (patch) | |
tree | c3f48794abab6cedb5d698b75b2fe525a56c7958 /vid-webpack-master/cypress/support | |
parent | f7c41b1c4aeea09e67c8bb88f39d15e02cd1708f (diff) |
allow platform multi-selection for network
Issue-ID: VID-785
Change-Id: I4e6a4c2f0dc8c0e11f2571eec0789ad5672a9147
Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
Diffstat (limited to 'vid-webpack-master/cypress/support')
-rw-r--r-- | vid-webpack-master/cypress/support/jsonBuilders/mocks/jsons/flags.cypress.json | 3 | ||||
-rw-r--r-- | vid-webpack-master/cypress/support/steps/fill.network.step.ts | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/vid-webpack-master/cypress/support/jsonBuilders/mocks/jsons/flags.cypress.json b/vid-webpack-master/cypress/support/jsonBuilders/mocks/jsons/flags.cypress.json index d9602d139..148f6b4d5 100644 --- a/vid-webpack-master/cypress/support/jsonBuilders/mocks/jsons/flags.cypress.json +++ b/vid-webpack-master/cypress/support/jsonBuilders/mocks/jsons/flags.cypress.json @@ -24,5 +24,6 @@ "FLAG_2002_UNLIMITED_MAX" : true, "FLAG_2004_CREATE_ANOTHER_INSTANCE_FROM_TEMPLATE": true, "FLAG_2006_VFM_SDNC_PRELOAD_FILES" : true, - "FLAG_2006_VFMODULE_TAKES_TENANT_AND_REGION_FROM_VNF": true + "FLAG_2006_VFMODULE_TAKES_TENANT_AND_REGION_FROM_VNF": true, + "FLAG_2006_NETWORK_PLATFORM_MULTI_SELECT" :true } diff --git a/vid-webpack-master/cypress/support/steps/fill.network.step.ts b/vid-webpack-master/cypress/support/steps/fill.network.step.ts index c981ac4b2..4ca1796f1 100644 --- a/vid-webpack-master/cypress/support/steps/fill.network.step.ts +++ b/vid-webpack-master/cypress/support/steps/fill.network.step.ts @@ -5,12 +5,15 @@ declare namespace Cypress { } } -function fillNetworkPopup(): Chainable<any> { +function fillNetworkPopup(shouldSelectAdditionalPlatform: boolean = false): Cypress.Chainable<any> { cy.selectDropdownOptionByText('productFamily', 'Emanuel'); cy.selectDropdownOptionByText('lcpRegion', 'hvf6'); cy.selectDropdownOptionByText('tenant', 'AIN Web Tool-15-D-STTest2'); cy.selectDropdownOptionByText('lineOfBusiness', 'zzz1'); - cy.selectDropdownOptionByText('platform', 'xxx1'); + cy.selectPlatformValue('xxx1'); + if(shouldSelectAdditionalPlatform){ + cy.selectPlatformValue('platform'); + } return cy.getElementByDataTestsId('form-set').click({force : true}).then((done)=>{ return done; }); |