Skip to content

Commit

Permalink
ci(postman): Fixed adyen assertion failure (#3030)
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 Dec 1, 2023
1 parent d883cd1 commit 00b58a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ if (jsonData?.error?.type) {
// Response body should have value "invalid_request" for "error type"
if (jsonData?.error?.message) {
pm.test(
"[POST]::/payments - Content check if value for 'error.message' matches 'The payment has not succeeded yet. Please pass a successful payment to initiate refund'",
"[POST]::/payments - Content check if value for 'error.message' matches 'This Payment could not be refund because it has a status of requires_confirmation. The expected state is succeeded, partially_captured'",
function () {
pm.expect(jsonData.error.message).to.eql(
"The payment has not succeeded yet. Please pass a successful payment to initiate refund",
"This Payment could not be refund because it has a status of requires_confirmation. The expected state is succeeded, partially_captured",
);
},
);
Expand Down

0 comments on commit 00b58a9

Please sign in to comment.