Visualization of the VF Module Sequencing
[vid.git] / vid-webpack-master / cypress / support / steps / fill.service.popup.step.ts
index 4595d89..59dfc45 100644 (file)
@@ -1,7 +1,8 @@
 
 declare namespace Cypress {
   interface Chainable {
-    fillServicePopup: typeof FillServicePopup
+    fillServicePopup: typeof FillServicePopup,
+    addAlacarteService: typeof addAlacarteService;
   }
 }
 
@@ -20,6 +21,19 @@ function FillServicePopup(): Chainable<any> {
     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);