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