Visualization of the VF Module Sequencing
[vid.git] / vid-webpack-master / cypress / support / steps / fill.service.popup.step.ts
1
2 declare namespace Cypress {
3   interface Chainable {
4     fillServicePopup: typeof FillServicePopup,
5     addAlacarteService: typeof addAlacarteService;
6   }
7 }
8
9 function FillServicePopup(): Chainable<any> {
10   cy.openIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true');
11   cy.selectDropdownOptionByText('subscriberName', 'SILVIA ROBBINS');
12   cy.selectDropdownOptionByText('serviceType', 'TYLER SILVIA');
13   cy.selectDropdownOptionByText('productFamily', 'TYLER SILVIA');
14   cy.selectDropdownOptionByText('lcpRegion', 'hvf6');
15   cy.selectDropdownOptionByText('tenant', 'AIN Web Tool-15-D-testalexandria');
16   cy.selectDropdownOptionByText('aic_zone', 'NFTJSSSS-NFT1');
17   cy.selectDropdownOptionByText('project', 'WATKINS');
18   cy.selectDropdownOptionByText('owningEntity', 'aaa1');
19   cy.selectDropdownOptionByText('rollback', 'Rollback');
20   return cy.getElementByDataTestsId('form-set').click({force : true}).then((done)=>{
21     return done;
22   });
23
24 }
25 function addAlacarteService(): Chainable<any> {
26   cy.openIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true');
27   cy.selectDropdownOptionByText('subscriberName', 'SILVIA ROBBINS');
28   cy.selectDropdownOptionByText('serviceType', 'TYLER SILVIA');
29   cy.selectDropdownOptionByText('project', 'WATKINS');
30   cy.selectDropdownOptionByText('owningEntity', 'aaa1');
31   cy.selectDropdownOptionByText('rollback', 'Rollback');
32   return cy.getElementByDataTestsId('form-set').click({force : true}).then((done)=>{
33     return done;
34   });
35
36 }
37
38 Cypress.Commands.add('fillServicePopup', FillServicePopup);
39 Cypress.Commands.add('addAlacarteService', addAlacarteService);