Skip to content

test: added unit test cases for components

Vemuri priya requested to merge Test/component-pages into test_cases

Description:

This MR adds comprehensive unit tests for the BottomNav and CategoryTag component to ensure correct navigation behavior, UI rendering, styling, and accessibility. It improves reliability by validating different states and interactions of the component.


Type of Change:

  • Feature Development
  • Bug Fix
  • Documentation

Testing:

  • Tested on desktop
  • Tested on mobile
  • Tested in different browsers

Screenshots (if applicable): Screenshot_from_2026-03-22_14-07-09


Checklist:

  • Code follows project style guidelines
  • Self-review completed
  • No console errors
  • TypeScript types are correct

Key Changes:

  • Added unit tests for navigation actions (Home, Tools, Profile)
  • Verified active state styling based on current route
  • Tested rendering of navigation items and icons
  • Ensured proper accessibility attributes and structure
  • Covered nested route handling and hover styles
  • Achieved 100% test coverage for both BottomNav & CategoryTag component

Closed #243 (closed)

Edited by Vemuri priya

Merge request reports

Loading