From 7d43c5a7367ed9f85b98ae39856e361c1f2ecda4 Mon Sep 17 00:00:00 2001 From: likhinbopanna <131246334+likhinbopanna@users.noreply.github.com> Date: Mon, 8 Jan 2024 19:51:15 +0530 Subject: [PATCH] ci(postman): Adyen assertion fix for expired card test case (#3279) Co-authored-by: Likhin Bopanna --- .../Payments - Create(Invalid Exp month)/event.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/postman/collection-dir/adyen_uk/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.js b/postman/collection-dir/adyen_uk/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.js index 93bd98b4cc..1e8dabda82 100644 --- a/postman/collection-dir/adyen_uk/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.js +++ b/postman/collection-dir/adyen_uk/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.js @@ -75,12 +75,12 @@ if (jsonData?.error?.type) { ); } -// Response body should have value "invalid_request" for "error type" -if (jsonData?.error?.message) { +// Response body should have value "connector error" for "error type" +if (jsonData?.error?.type) { pm.test( - "[POST]::/payments - Content check if value for 'error.message' matches 'Card Expired'", + "[POST]::/payments - Content check if value for 'error.type' matches 'invalid_request'", function () { - pm.expect(jsonData.error.message).to.eql("Card Expired"); + pm.expect(jsonData.error.type).to.eql("invalid_request"); }, ); }