-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[MBL-1675] Update add-ons CTA #2142
Conversation
self.configureContinueCTAViewWithDataQuantity.assertLastValue(5) | ||
self.configureContinueCTAViewWithDataIsValid.assertLastValue(true) | ||
self.configureContinueCTAViewWithDataIsLoading.assertLastValue(false) | ||
XCTAssertEqual(self.configureContinueCTAViewWithDataPledgeAmount.lastValue??.string, "$60.00") |
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.
Note: I've updated these and similar tests to only check the last value instead of asserting all values, since adding the total here about doubles the amount of value changes (any time bonus support or add-ons change, so does the total). I found just checking the last value to be more useful and more clear.
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! just noticing some slight differences in font sizing and the amount needing to be rounded.
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.
It looks like the label and amount font sizes might be slightly off from the designs. And also I think the amount should be rounded to the nearest dollar.
from the designs
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.
Yeah, I asked Alison about this and she said to match the current styling for the total so I'm pretty sure we want to do that for the font as well!
📲 What
Update the add-ons CTA to include the pledge amount (in the no shipping at pledge flow). For simplicity, this also moves some pledge-flow CTA styles to be shared.
👀 See
Jira
See snapshots for the before/after.
✅ Acceptance criteria