// Then...
cy.wait('@expectedPostAsyncInstantiation').then(xhr => {
- // cy.readFile('cypress/support/jsonBuilders/mocks/jsons/instantiationTemplates/templates__instance_template.json').then((expectedResult) => {
- // cy.deepCompare(xhr.request.body, expectedResult);
+ // cy.readFile('cypress/support/jsonBuilders/mocks/jsons/instantiationTemplates/templates__instance_template.json').then((expectedResult) => {
+ // convertRollbackOnFailureValueFromStringToBoolean(expectedResult);
+ // cy.deepCompare(xhr.request.body, expectedResult);
// });
});
});
+ //We use this function because the deployService() on drawing-board-header.component class
+ // changes rollbackOnFailure value from string type to boolean.
+ function convertRollbackOnFailureValueFromStringToBoolean(expectedResult: any) {
+ expectedResult.rollbackOnFailure = Boolean(expectedResult.rollbackOnFailure);
+ }
function mockAsyncBulkResponse() {
cy.server().route({
"aicZoneName": null,
"projectName": "Kennedy",
"subscriberName": "Emanuel",
- "rollbackOnFailure": true,
+ "rollbackOnFailure": "true",
"isALaCarte": true,
"testApi": "GR_API",
"trackById": "36601560-f8e3-4020-bdef-3e4709c51e84",