-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cypress): add test case for incorrect and empty card types #6550
base: main
Are you sure you want to change the base?
Conversation
Changed Files
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me other wise
const billingAddress = { | ||
address: { | ||
line1: "1467", | ||
line2: "Harrison Street", | ||
line3: "Harrison Street", | ||
city: "San Fransico", | ||
state: "California", | ||
zip: "94122", | ||
country: "BR", | ||
first_name: "john", | ||
last_name: "doe", | ||
}, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is specific to a connector or a payment method, then i would recommend having country field empty and override it in respective fields wherever it is used.
also, if i'm not asking too much, can you please also apply the same changes to rest of the file where ever billing
exist and is not null
.
that way, we can do something like:
billing: {
...billingAddress,
country: DE / GB / BR / IN / US
}
Type of Change
Description
Test cases for #6512
Additional Changes
Motivation and Context
Adds test cases for card types.
How did you test it?
Locally.
Checklist
cargo +nightly fmt --all
cargo clippy