ci(postman): Adyen assertion fix for expired card test case (#3279)

Co-authored-by: Likhin Bopanna <likhin.bopanna@likhinbopanna-DQK43G6YDT.local>
This commit is contained in:
likhinbopanna
2024-01-08 19:51:15 +05:30
committed by GitHub
parent 90ac26a92f
commit 7d43c5a736

View File

@ -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");
},
);
}