Skip to content

[Bug] : Add unit tests for NavbarBrand component #3597

@paridhijain153

Description

@paridhijain153

Description

The NavbarBrand component currently lacks dedicated unit tests. This component is responsible for rendering the Learnova brand link, logo, and navigation callback behavior. Adding tests will ensure that branding and navigation functionality continue to work correctly during future changes.

Steps to Reproduce

  1. Navigate to components/navigation/NavbarBrand.jsx.
  2. Check the existing test suite.
  3. Observe that no dedicated test file exists for this component.
  4. Notice there is no automated coverage validating its rendering and navigation behavior.

Expected Behavior

A test suite should verify:

  • Learnova branding text renders correctly.
  • Premium label renders correctly.
  • Homepage link points to /.
  • Accessible label is present.
  • onNavigate callback executes when the link is clicked.

Screenshots

Not applicable.

Environment

  • OS: Windows, macOS, Linux
  • Browser: Chrome, Firefox, Safari, Edge
  • Version: Latest supported versions

Metadata

Metadata

Labels

GSSoC'26Part of GirlScript Summer of Code 2026bugSomething isn't workingmentor:Ayushh-SharmaaGSSoC: Mentor — @Ayushh-Sharmaa

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions