Skip to content

Commit

Permalink
ci(postman): Adyen assertion fix for expired card test case (#3279)
Browse files Browse the repository at this point in the history
Co-authored-by: Likhin Bopanna <[email protected]>
  • Loading branch information
likhinbopanna and Likhin Bopanna authored Jan 8, 2024
1 parent 90ac26a commit 7d43c5a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
},
);
}

0 comments on commit 7d43c5a

Please sign in to comment.