summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEylon Malin <eylon.malin@intl.att.com>2020-01-06 08:55:12 +0200
committerEylon Malin <eylon.malin@intl.att.com>2020-01-06 08:55:12 +0200
commitfd03c225db2e436e5dc957d9e50b5b89646d3d1c (patch)
tree71083609cb46388f13f830fd2216d439f32a773f
parenta98e5f9165caf14f058d03cbc6749420adefe568 (diff)
cypress test - provide more details upon deepCompare failure
Issue-ID: VID-740 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I8c2a23fe9b69bd6f2395083d07d0a3ec7ed60b8f
-rw-r--r--vid-webpack-master/cypress/support/steps/general/compareDeepObjects.step.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/vid-webpack-master/cypress/support/steps/general/compareDeepObjects.step.ts b/vid-webpack-master/cypress/support/steps/general/compareDeepObjects.step.ts
index ee5e95a3a..901a9b17f 100644
--- a/vid-webpack-master/cypress/support/steps/general/compareDeepObjects.step.ts
+++ b/vid-webpack-master/cypress/support/steps/general/compareDeepObjects.step.ts
@@ -24,7 +24,7 @@ function deepCompare(actual : any, expected : any) {
if(diff.length > 0){
console.error("diff", diff);
cy.log("The object are not equals", diff);
- expect(actual).equals(expected);
+ expect(actual).equals(expected, `diff: ${diff}, actual:${JSON.stringify(actual)}, expected:${JSON.stringify(expected)}`);
}
}
}