mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
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:
@ -75,12 +75,12 @@ if (jsonData?.error?.type) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Response body should have value "invalid_request" for "error type"
|
// Response body should have value "connector error" for "error type"
|
||||||
if (jsonData?.error?.message) {
|
if (jsonData?.error?.type) {
|
||||||
pm.test(
|
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 () {
|
function () {
|
||||||
pm.expect(jsonData.error.message).to.eql("Card Expired");
|
pm.expect(jsonData.error.type).to.eql("invalid_request");
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user