From 05f737309f7fac9f0985fac2948a57398c286317 Mon Sep 17 00:00:00 2001 From: Gnanasundari24 <118818938+Gnanasundari24@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:43:20 +0530 Subject: [PATCH] ci(Cypress): Add testcase for newline in address (#6721) --- .../cypress/e2e/PaymentUtils/Cybersource.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js b/cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js index 97a5bd0971c0..ea7fe7b7acb1 100644 --- a/cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js +++ b/cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js @@ -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: { @@ -215,6 +233,7 @@ export const connectorDetails = { currency: "USD", customer_acceptance: null, setup_future_usage: "on_session", + billing: billing_with_newline, }, Response: { status: 200,