-
Notifications
You must be signed in to change notification settings - Fork 992
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
Hide default checkbox and auto-set if first #4643
Hide default checkbox and auto-set if first #4643
Conversation
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.
Just a non blocking question
@@ -2854,8 +2852,7 @@ class PaymentSheetDefaultSPMUITests: PaymentSheetUITestCase { | |||
saveThisCardToggle.tap() | |||
XCTAssertTrue(saveThisCardToggle.isSelected) | |||
// do not set this card as default | |||
setDefaultToggle = app.switches["Set as default payment method"] | |||
XCTAssertFalse(setDefaultToggle.isSelected) | |||
XCTAssertFalse(app.switches["Set as default payment method"].isSelected) |
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.
Do we need this? Is the "Set as default payment method" even visible?
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.
We previously saved a card, so the "Set as default payment method" checkbox is shown when we try adding another card. Since the new card wouldn't be the only saved payment method, it wouldn't automatically be set as the default.
Summary
If a customer has no saved payment methods and the default feature is enabled, hide the default checkbox and automatically set new card or US bank account as the default.
Motivation
Bug bash suggestion
Testing
Updated UI test
Changelog