-
Notifications
You must be signed in to change notification settings - Fork 956
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
Don't enable the "save this card" checkbox by default #3076
Conversation
XCTAssertFalse(saveThisCardToggle.isSelected) | ||
saveThisCardToggle.tap() | ||
|
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.
Nit: seems like we should add (for multiple of these)
saveThisCardToggle.tap()
+ XCTAssertTrue(saveThisCardToggle.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.
I think the test enforces this (it checks if the card is saved!) but I can
case .automatic: | ||
// only enable the save checkbox by default for US | ||
return Locale.current.stp_regionCode == "US" | ||
return false |
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 should probably add this to our list of "things to break" in the next major version
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.
I like having .automatic around just in case, maybe someday we can control it server-side
Summary
Change the "save this card" checkbox to be unchecked by default.
Motivation
Latest guidance.
Testing
CI, updated existing tests.
Changelog
Added a changelog entry.