Skip to content

Add component tests for components/layout/navbar.tsx #645

Description

@Austinaminu2

Description

`components/layout/navbar.tsx` has no test coverage for active-link highlighting per route, the network/theme dropdown selection, or the network-mismatch banner (which should only appear when `isConnected && networkMismatch`).

Task

Add a test file covering: correct link is highlighted for the current route, theme/network dropdown selections update state as expected, and the network-mismatch banner only renders under the correct connected+mismatched condition.

Good for contributors because

Well-defined conditional rendering logic with a small number of states to cover, good introduction to the app's layout/navigation code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededtestingTests and QA

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions