From: Eylon Malin Date: Mon, 6 Jan 2020 06:55:12 +0000 (+0200) Subject: cypress test - provide more details upon deepCompare failure X-Git-Tag: 6.0.1~7 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=fd03c225db2e436e5dc957d9e50b5b89646d3d1c;p=vid.git cypress test - provide more details upon deepCompare failure Issue-ID: VID-740 Signed-off-by: Eylon Malin Change-Id: I8c2a23fe9b69bd6f2395083d07d0a3ec7ed60b8f --- 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)}`); } } }