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
- Fork the repo and create a branch
git checkout -b test/testing-footer
- Implement changes
- Test and commit
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.
Test the Footer links, safe external rel, and copyright year
Description
src/components/Footer.tsxrenders on every page viasrc/app/layout.tsxand (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'srelor a broken internal route would ship to every page unnoticed. This issue adds coverage.Requirements and context
<Link>s point at real routes, and the tagline is present.target="_blank"andrel="noopener noreferrer".Datefor a deterministic assertion).Suggested execution
git checkout -b test/testing-footersrc/components/__tests__/Footer.test.tsx.src/components/Footer.tsxif missing.src/app/.Test and commit
npm run lint,npm run typecheck, andnpm test.npm testoutput and coverage for the component.Example commit message
test(components): cover Footer nav, external rel, and dynamic yearGuidelines
Footer.tsx.Community & contribution rewards