blob: 4595d89fc9471563bb9dd5860742b932d776f6e3 [file] [log] [blame]
Ittay Stern6f900cc2018-08-29 17:01:32 +03001
2declare namespace Cypress {
3 interface Chainable {
4 fillServicePopup: typeof FillServicePopup
5 }
6}
7
8function FillServicePopup(): Chainable<any> {
9 cy.openIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true');
10 cy.selectDropdownOptionByText('subscriberName', 'SILVIA ROBBINS');
11 cy.selectDropdownOptionByText('serviceType', 'TYLER SILVIA');
12 cy.selectDropdownOptionByText('productFamily', 'TYLER SILVIA');
13 cy.selectDropdownOptionByText('lcpRegion', 'hvf6');
14 cy.selectDropdownOptionByText('tenant', 'AIN Web Tool-15-D-testalexandria');
15 cy.selectDropdownOptionByText('aic_zone', 'NFTJSSSS-NFT1');
16 cy.selectDropdownOptionByText('project', 'WATKINS');
17 cy.selectDropdownOptionByText('owningEntity', 'aaa1');
18 cy.selectDropdownOptionByText('rollback', 'Rollback');
19 return cy.getElementByDataTestsId('form-set').click({force : true}).then((done)=>{
20 return done;
21 });
22
23}
24
25Cypress.Commands.add('fillServicePopup', FillServicePopup);