Skip to content

Commit

Permalink
ci(Cypress): Add testcase for newline in address (#6721)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnanasundari24 authored Dec 9, 2024
1 parent 19f810a commit 05f7373
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,24 @@ const payment_method_data_3ds = {
billing: null,
};

const billing_with_newline = {
address: {
line1: "1467",
line2: "Harrison Street\nApt 101",
line3: "Harrison Street\nApt 101",
city: "San Fransico\n city",
state: "California",
zip: "94122",
country: "NL",
first_name: "joseph",
last_name: "Doe",
},
phone: {
number: "9123456789",
country_code: "+91",
},
};

export const connectorDetails = {
card_pm: {
PaymentIntent: {
Expand Down Expand Up @@ -215,6 +233,7 @@ export const connectorDetails = {
currency: "USD",
customer_acceptance: null,
setup_future_usage: "on_session",
billing: billing_with_newline,
},
Response: {
status: 200,
Expand Down

0 comments on commit 05f7373

Please sign in to comment.