summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/support/steps/fill.network.step.ts
diff options
context:
space:
mode:
authorEinat Vinouze <einat.vinouze@intl.att.com>2020-03-16 19:08:22 +0200
committerEinat Vinouze <einat.vinouze@intl.att.com>2020-03-18 10:58:23 +0200
commit06f53244384e546cc15750f6d050a98a752a0ade (patch)
tree379fb0247807d0792937d9cc732856923b00848b /vid-webpack-master/cypress/support/steps/fill.network.step.ts
parent6b57c89aa2ceda72126576c8cdb58b75e83df6f1 (diff)
allow LOB multi-selection for network
Issue-ID: VID-788 Change-Id: I03674ea0c04567291ba647c76b7c88bc11a7cf0e Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
Diffstat (limited to 'vid-webpack-master/cypress/support/steps/fill.network.step.ts')
-rw-r--r--vid-webpack-master/cypress/support/steps/fill.network.step.ts11
1 files changed, 7 insertions, 4 deletions
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 4ca1796f1..0fa7f6b32 100644
--- a/vid-webpack-master/cypress/support/steps/fill.network.step.ts
+++ b/vid-webpack-master/cypress/support/steps/fill.network.step.ts
@@ -5,14 +5,17 @@ declare namespace Cypress {
}
}
-function fillNetworkPopup(shouldSelectAdditionalPlatform: boolean = false): Cypress.Chainable<any> {
+function fillNetworkPopup(shouldSelectAdditionalPlatform: boolean = false, shouldSelectAdditionalLob: 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.selectPlatformValue('xxx1');
+ cy.selectLobValue("zzz1");
+ cy.selectPlatformValue(`xxx1`);
if(shouldSelectAdditionalPlatform){
- cy.selectPlatformValue('platform');
+ cy.selectPlatformValue(`platform`);
+ }
+ if(shouldSelectAdditionalLob){
+ cy.selectLobValue("ONAP");
}
return cy.getElementByDataTestsId('form-set').click({force : true}).then((done)=>{
return done;