summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/support/steps/fill.service.popup.step.ts
blob: 59dfc4572de48a1ed67b9828c6438c44abbcfd3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
declare namespace Cypress {
  interface Chainable {
    fillServicePopup: typeof FillServicePopup,
    addAlacarteService: typeof addAlacarteService;
  }
}

function FillServicePopup(): Chainable<any> {
  cy.openIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true');
  cy.selectDropdownOptionByText('subscriberName', 'SILVIA ROBBINS');
  cy.selectDropdownOptionByText('serviceType', 'TYLER SILVIA');
  cy.selectDropdownOptionByText('productFamily', 'TYLER SILVIA');
  cy.selectDropdownOptionByText('lcpRegion', 'hvf6');
  cy.selectDropdownOptionByText('tenant', 'AIN Web Tool-15-D-testalexandria');
  cy.selectDropdownOptionByText('aic_zone', 'NFTJSSSS-NFT1');
  cy.selectDropdownOptionByText('project', 'WATKINS');
  cy.selectDropdownOptionByText('owningEntity', 'aaa1');
  cy.selectDropdownOptionByText('rollback', 'Rollback');
  return cy.getElementByDataTestsId('form-set').click({force : true}).then((done)=>{
    return done;
  });

}
function addAlacarteService(): Chainable<any> {
  cy.openIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true');
  cy.selectDropdownOptionByText('subscriberName', 'SILVIA ROBBINS');
  cy.selectDropdownOptionByText('serviceType', 'TYLER SILVIA');
  cy.selectDropdownOptionByText('project', 'WATKINS');
  cy.selectDropdownOptionByText('owningEntity', 'aaa1');
  cy.selectDropdownOptionByText('rollback', 'Rollback');
  return cy.getElementByDataTestsId('form-set').click({force : true}).then((done)=>{
    return done;
  });

}

Cypress.Commands.add('fillServicePopup', FillServicePopup);
Cypress.Commands.add('addAlacarteService', addAlacarteService);