Skip to content

test: add unit tests for homepage and page builder components#7

Open
kipsang01 wants to merge 4 commits into
devfrom
feat/multi-tenant
Open

test: add unit tests for homepage and page builder components#7
kipsang01 wants to merge 4 commits into
devfrom
feat/multi-tenant

Conversation

@kipsang01
Copy link
Copy Markdown
Collaborator

  • 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-code-review
Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

kipsang01 added 3 commits May 21, 2026 16:34
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant