From 548c5a220333c7cd666b861e737bff0b45461f18 Mon Sep 17 00:00:00 2001 From: "Stone, Avi (as206k)" Date: Sun, 3 Jun 2018 13:12:12 +0300 Subject: Update FE project Update FE to latest version so that fe can run on docker Change-Id: I9c5dee756b567dbe64fac6d3d6fd89362813bdcc Issue-ID: SDC-1359 Signed-off-by: Stone, Avi (as206k) --- public/cypress/support/generalCommands.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'public/cypress/support/generalCommands.ts') diff --git a/public/cypress/support/generalCommands.ts b/public/cypress/support/generalCommands.ts index fc87acc..35d2fa7 100644 --- a/public/cypress/support/generalCommands.ts +++ b/public/cypress/support/generalCommands.ts @@ -3,6 +3,7 @@ declare namespace Cypress { httpGetDDLData: typeof httpGetDDLData; fillNewMcForm: typeof fillNewMcForm; httpCreateNewMc: typeof httpCreateNewMc; + httpCreateNewMcWithBooleanDDL: typeof httpCreateNewMcWithBooleanDDL; } } @@ -44,7 +45,22 @@ function httpCreateNewMc() { .as('newMC'); } +function httpCreateNewMcWithBooleanDDL() { + cy.server(); + cy + .route({ + method: 'POST', + url: Cypress.env('backendUrl') + '/createMC', + response: 'fixture:createMcResWithBooleanDDL' + }) + .as('newMCWithBooleanDDL'); +} + // Add cypress commands Cypress.Commands.add('httpGetDDLData', httpGetDDLData); Cypress.Commands.add('fillNewMcForm', fillNewMcForm); Cypress.Commands.add('httpCreateNewMc', httpCreateNewMc); +Cypress.Commands.add( + 'httpCreateNewMcWithBooleanDDL', + httpCreateNewMcWithBooleanDDL +); -- cgit 1.2.3-korg