-
Notifications
You must be signed in to change notification settings - Fork 988
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
MLB -1798: Added plot selected badge to PledgeItemizedDetails #2166
base: master
Are you sure you want to change the base?
Conversation
- added plotSelected prop, created component, added tests and added previews
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2166 +/- ##
============================================
- Coverage 68.89% 68.86% -0.03%
+ Complexity 2225 2224 -1
============================================
Files 366 366
Lines 23100 23152 +52
Branches 3349 3356 +7
============================================
+ Hits 15915 15944 +29
- Misses 5375 5396 +21
- Partials 1810 1812 +2 ☔ View full report in Codecov by Sentry. |
@@ -101,7 +128,8 @@ fun ItemizedRewardListContainer( | |||
totalBonusSupport: String, | |||
deliveryDateString: String = "", | |||
rewardsHaveShippables: Boolean = false, | |||
disclaimerText: String = "" | |||
disclaimerText: String = "", | |||
plotSelected: Boolean |
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 can pass in a default value of false
here for plotSelected
, and then it will only show when we pass in a true
value. that way we aren't required to pass in a value for this field everywhere we call this function unless it's PLOT related
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.
Change added 😄
) | ||
} | ||
} | ||
deliveryDate.assertIsDisplayed() | ||
deliveryDate.assertTextEquals("April 10") | ||
} | ||
|
||
@Test | ||
fun `test plot selected, when plot selected should show plot selected badge`() { |
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.
😃
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.
LGTM! Left a small optional comment that might clean things up a little bit, but otherwise this looks great!
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.
lgtm!
📲 What
Created PLOT badge on PledgeItemizedDetails
🤔 Why
To indicates when PLOT is selected.
🛠 How
added plotSelected prop, created component, added tests and added previews
👀 See