blob: c981ac4b2cf3afa56facfa3e0831efc52004d134 [file] [log] [blame]
Ittay Stern6f900cc2018-08-29 17:01:32 +03001// add new command to the existing Cypress interface
2declare namespace Cypress {
3 interface Chainable {
4 fillNetworkPopup: typeof fillNetworkPopup,
5 }
6}
7
8function fillNetworkPopup(): Chainable<any> {
9 cy.selectDropdownOptionByText('productFamily', 'Emanuel');
10 cy.selectDropdownOptionByText('lcpRegion', 'hvf6');
11 cy.selectDropdownOptionByText('tenant', 'AIN Web Tool-15-D-STTest2');
12 cy.selectDropdownOptionByText('lineOfBusiness', 'zzz1');
13 cy.selectDropdownOptionByText('platform', 'xxx1');
14 return cy.getElementByDataTestsId('form-set').click({force : true}).then((done)=>{
15 return done;
16 });
17}
18
19Cypress.Commands.add('fillNetworkPopup', fillNetworkPopup);