merge from ecomp a88f0072 - Modern UI

Issue-ID: VID-378
Change-Id: Ibcb23dd27f550cf32ce2fe0239f0f496ae014ff6
Signed-off-by: Ittay Stern <ittay.stern@att.com>
diff --git a/vid-webpack-master/cypress/support/steps/fill.vfModule.step.ts b/vid-webpack-master/cypress/support/steps/fill.vfModule.step.ts
new file mode 100644
index 0000000..d297783
--- /dev/null
+++ b/vid-webpack-master/cypress/support/steps/fill.vfModule.step.ts
@@ -0,0 +1,24 @@
+declare namespace Cypress {
+  interface Chainable {
+    fillVFModulePopup: typeof FillVFModulePopup
+  }
+}
+
+function FillVFModulePopup(vnfName: string, vfModuleName: string, instanceName: string, lcpRegion: string, tenant: string, rollback: boolean, sdncPreLoad: boolean): Chainable<any> {
+  cy.getElementByDataTestsId('node-' + vnfName).click({force: true});
+  cy.getElementByDataTestsId('node-' + vfModuleName + '-add-btn').click({force: true});
+  cy.getElementByDataTestsId('instanceName').last().type(instanceName, {force: true});
+  cy.getElementByDataTestsId('lcpRegion').last().select(lcpRegion);
+  cy.getElementByDataTestsId('tenant').last().select(tenant);
+  cy.getElementByDataTestsId('lcpRegion').last().select(lcpRegion);
+  cy.getElementByDataTestsId('rollback').last().select(String(rollback));
+  if (sdncPreLoad) {
+    cy.getElementByDataTestsId('sdncPreLoad').last().check();
+  }
+  return cy.getElementByDataTestsId('form-set').last().click({force: true}).then((done) => {
+    return done;
+  });
+
+}
+
+Cypress.Commands.add('fillVFModulePopup', FillVFModulePopup);