test: added unit test cases for components
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
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&CategoryTagcomponent
Closed #243 (closed)
Edited by Vemuri priya
