X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vid-webpack-master%2Fcypress%2Fsupport%2Fsteps%2Ffill.network.step.ts;h=0fa7f6b32e4a9dc2a67d7ed88f37a9fe02a5559e;hb=06f53244384e546cc15750f6d050a98a752a0ade;hp=4ca1796f16c46e77131510e2ef74b0073e478926;hpb=6b57c89aa2ceda72126576c8cdb58b75e83df6f1;p=vid.git 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 { +function fillNetworkPopup(shouldSelectAdditionalPlatform: boolean = false, shouldSelectAdditionalLob: boolean = false): Cypress.Chainable { 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;