-
Notifications
You must be signed in to change notification settings - Fork 80
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
CIF-1608 - Category Carousel Component #417
Conversation
* created generic carousel component * created category carousel component * adjusted product carousel and related products component to extend the generic carousel component * added unit tests
Codecov Report
@@ Coverage Diff @@
## master #417 +/- ##
============================================
+ Coverage 84.84% 84.92% +0.07%
Complexity 1023 1023
============================================
Files 214 215 +1
Lines 5320 5387 +67
Branches 773 773
============================================
+ Hits 4514 4575 +61
- Misses 657 663 +6
Partials 149 149
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Please add an integration test for the new categorycarousel component, to check the markup.
@@ -12,130 +12,24 @@ | |||
* | |||
******************************************************************************/ | |||
|
|||
import Carousel from '../../../../../carousel/v1/carousel/clientlibs/js/carousel'; |
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.
Is this import
really necessary? The general carousel clientlib exposes the Carousel
class already globally, so it should be available, since in the archetypes all clientlibs are bundled together.
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.
The product carousel gets broken without the import.
@herzog31 , I've created follow-up issue for adding the new component to the component library examples and also to add IT which is based on the examples package. |
I agree here with @herzog31 lets add ITs here. Yes the PR is already large but there is no need for a follow-up issue. We already have an issue ticket and tests should simply be part of it. |
* updated examples project with category carousel * added integration test for category carousel
* fixed IT failure
I've updated the examples project and added integration test for category carousel. |
* fixed category carousel component icon in the component palette of page editor
* fixed code after merge conflicts
* extracted card template in featured category list
* clarifications in generic carousel
* fixed issue with JS code duplication
Related PRs:
Related Issue
CIF-1608
How Has This Been Tested?
Unit tests, manual testing.
Types of changes
Checklist: