Skip to content

test(scout): add footer navigation coverage#46

Merged
kashish2508 merged 1 commit into
mainfrom
scout/add-tests-1783578556392
Jul 9, 2026
Merged

test(scout): add footer navigation coverage#46
kashish2508 merged 1 commit into
mainfrom
scout/add-tests-1783578556392

Conversation

@kashish2508

Copy link
Copy Markdown
Member

🔍 Scout — Footer navigation coverage

Commit 0682e80 added a footer navigation bar (<nav aria-label="Footer">) with About, Contact, and FAQ links, which had no automated coverage. This PR adds 3 Playwright tests in tests/footer.spec.ts and appends plan entry #15 to the test plan.

Footer About link navigates to /about — clicks the footer-scoped About link and asserts the app routes to /about and renders the "About Us" heading.

Footer Contact link navigates to /contact — clicks the footer-scoped Contact link and asserts the app routes to /contact and renders the "Contact Us" heading.

Footer FAQ link navigates to /faq — clicks the footer-scoped FAQ link and asserts the app routes to /faq and renders the "Frequently Asked Questions" heading.

Locators are scoped to the footer contentinfo landmark because the navbar exposes links with the same accessible names. All 3 tests pass. No product code was changed.

⚠️ Heads-up for the reviewer: the same change breaks 7 pre-existing footer tests (the copyright-year and 404-route checks) because they use an exact toHaveText(copyright) match and the footer now also contains the nav-link text. Those are pre-existing tests (not authored here), so this run left them untouched — they should be updated to toContainText or to target the copyright paragraph.

View full scout report

Add 3 Playwright tests for the new footer navigation links (About,
Contact, FAQ) introduced in 0682e80. Each test clicks a footer-scoped
link and asserts it routes to the destination page. Append plan entry
#15 to the test plan.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kashish2508

Copy link
Copy Markdown
Member Author

🤖 App Testing Agent

🔍 Scout Report

Commit ed72ec9 in PR #46

I added 3 tests covering the new footer navigation links.

✅ Tests added

Footer About link navigates to /about
Pins the new footer nav (added in 0682e80) — clicking the footer-scoped About link must route to /about.

Footer Contact link navigates to /contact
Covers the footer Contact link routing to /contact, previously untested.

Footer FAQ link navigates to /faq
Covers the footer FAQ link routing to /faq, previously untested.

⚠️ Coverage gaps not actioned

Pre-existing footer copyright / 404 tests now fail
The same change makes the footer contain the nav-link text, so 7 pre-existing footer tests that use an exact toHaveText(copyright) match now fail. They were authored earlier (not this run), so I left them untouched — they should be updated to toContainText or to target the copyright paragraph.

View full scout report

@kashish2508

Copy link
Copy Markdown
Member Author

good job

@kashish2508 kashish2508 merged commit 039cd4d into main Jul 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant