aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/integration
diff options
context:
space:
mode:
authorAlexey Sandler <alexey.sandler@intl.att.com>2019-12-04 17:48:06 +0200
committerAlexey Sandler <alexey.sandler@intl.att.com>2019-12-04 18:32:54 +0200
commitb85a046bb43f83bf1231d34ed5447fc07b2bfe1e (patch)
tree8d74f4739d4064139d6bcbff3cc9d1055ea89757 /vid-webpack-master/cypress/integration
parent2603481cc6487b0932458ebc7eb4e53202d3f24e (diff)
Create function that convert rollbackOnFailure value from String to Boolean
Issue-ID: VID-724 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com> Change-Id: Ia3738a146d0b57e961e097c6b6e70e525c46a397
Diffstat (limited to 'vid-webpack-master/cypress/integration')
-rw-r--r--vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts
index e01ccfda1..5f423f8c2 100644
--- a/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts
+++ b/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts
@@ -47,8 +47,9 @@ describe('Drawing Board: Instantiation Templates', function () {
// 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);
// });
});
@@ -56,6 +57,11 @@ describe('Drawing Board: Instantiation Templates', function () {
});
+ //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({