Skip to content

Commit

Permalink
fix(cypress): fix cypress from throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
pixincreate committed May 27, 2024
1 parent 757c949 commit c757797
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cypress-tests/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ Cypress.Commands.add(
"confirmBankRedirectCallTest",
(confirmBody, req_data, res_data, confirm, globalState) => {
const paymentIntentId = globalState.get("paymentID");
for (const key in req_data) {
confirmBody[key] = req_data[key];
}
confirmBody.payment_method = req_data.payment_method;
confirmBody.payment_method_type = req_data.payment_method_type;
confirmBody.payment_method_data.bank_redirect = req_data.bank_redirect;
confirmBody.confirm = confirm;
confirmBody.client_secret = globalState.get("clientSecret");

Expand Down Expand Up @@ -348,9 +348,9 @@ Cypress.Commands.add(
"confirmBankTransferCallTest",
(confirmBody, req_data, res_data, confirm, globalState) => {
const paymentIntentID = globalState.get("paymentID");
for (const key in req_data) {
confirmBody[key] = req_data[key];
}
confirmBody.payment_method = req_data.payment_method;
confirmBody.payment_method_type = req_data.payment_method_type;
confirmBody.payment_method_data.bank_transfer = req_data.bank_transfer;
confirmBody.confirm = confirm;
confirmBody.client_secret = globalState.get("clientSecret");

Expand Down

0 comments on commit c757797

Please sign in to comment.