diff options
author | Stone, Avi (as206k) <as206k@att.com> | 2018-06-03 13:12:12 +0300 |
---|---|---|
committer | Avi Stone <as206k@att.com> | 2018-06-03 11:56:49 +0000 |
commit | 548c5a220333c7cd666b861e737bff0b45461f18 (patch) | |
tree | 13c60b67291bd8bada498ad73c02a9e35afb5c9e /public/cypress/support/generalCommands.ts | |
parent | 193095b01daf094c78f7fafacdf1c1cc31f290fe (diff) |
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) <as206k@att.com>
Diffstat (limited to 'public/cypress/support/generalCommands.ts')
-rw-r--r-- | public/cypress/support/generalCommands.ts | 16 |
1 files changed, 16 insertions, 0 deletions
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 +); |