test: add unit tests for homepage and page builder components#7
Open
kipsang01 wants to merge 4 commits into
Open
test: add unit tests for homepage and page builder components#7kipsang01 wants to merge 4 commits into
kipsang01 wants to merge 4 commits into
Conversation
Collaborator
kipsang01
commented
May 21, 2026
- Introduced tests for FeaturedCollectionsSection to verify rendering of categories and curated items.
- Added tests for PageSectionsRenderer to ensure all supported section types are rendered correctly.
- Created tests for TestimonialsSection to validate rendering of testimonial cards with optional ratings and meta.
- Implemented tests for homepage configuration functions to ensure correct behavior when building homepage sections from tenant layout pages and handling various configurations.
- Added tests for dynamic pages configuration to validate merging of root pages and handling of invalid input.
- Included tests for tenant announcement bar and resolvers to ensure proper configuration resolution and fallback behavior.
- Introduced tests for FeaturedCollectionsSection to verify rendering of categories and curated items. - Added tests for PageSectionsRenderer to ensure all supported section types are rendered correctly. - Created tests for TestimonialsSection to validate rendering of testimonial cards with optional ratings and meta. - Implemented tests for homepage configuration functions to ensure correct behavior when building homepage sections from tenant layout pages and handling various configurations. - Added tests for dynamic pages configuration to validate merging of root pages and handling of invalid input. - Included tests for tenant announcement bar and resolvers to ensure proper configuration resolution and fallback behavior.
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
This change modifies the CI configuration to include the 'dev' branch in both push and pull_request events, allowing for better integration and testing workflows across multiple branches.
Updated the expected text in the loading component test to match the correct branding. This ensures that the test accurately reflects the current application state and branding.
Added a new utility function `isDefined` to check for non-null values. Updated the `buildHomepageSectionsFromSlugs` function to use this utility for filtering sections, ensuring better handling of null values in the homepage configuration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.