Skip to content

Add tests for the Footer navigation, Discord link, and dynamic year #149

Description

@mikewheeleer

Test the Footer links, safe external rel, and copyright year

Description

src/components/Footer.tsx renders on every page via src/app/layout.tsx and (after the footer build-out) carries internal nav links, an external Discord link, and a dynamic copyright year, but it has no dedicated test. A regression in the external link's rel or a broken internal route would ship to every page unnoticed. This issue adds coverage.

Requirements and context

  • Repository scope: Agentpay-Org/Agentpay-frontend only.
  • Assert the footer landmark renders, the internal <Link>s point at real routes, and the tagline is present.
  • Assert any external/Discord link carries target="_blank" and rel="noopener noreferrer".
  • Assert the copyright line shows the current year (mock Date for a deterministic assertion).

Suggested execution

Test and commit

  • Run npm run lint, npm run typecheck, and npm test.
  • Cover edge cases: external rel/target, year boundary, and all internal links resolving.
  • Include the npm test output and coverage for the component.

Example commit message

test(components): cover Footer nav, external rel, and dynamic year

Guidelines

  • Minimum 95 percent test coverage for Footer.tsx.
  • Clear, reviewer-focused documentation.
  • Timeframe: 96 hours.

Community & contribution rewards

  • 💬 Join the AgentPay community on Discord for questions, reviews, and faster merges: https://discord.gg/eXvRKkgcv
  • ⭐ This is a GrantFox OSS / Official Campaign task and may be rewarded. When your PR is merged you'll be prompted to rate the project — if this issue and the maintainers helped you ship, we'd be grateful for a 5-star rating. Clear questions in Discord and tidy, well-tested PRs are the fastest path to a merge and a reward.

Metadata

Metadata

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions