allow LOB multi-selection for network
[vid.git] / vid-webpack-master / cypress / support / steps / fill.network.step.ts
index 4ca1796..0fa7f6b 100644 (file)
@@ -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;