Skip to content

Count the Awards link in the privacy and terms footer tests - #150

Open
officialasishkumar wants to merge 1 commit into
vycdev:developfrom
officialasishkumar:fix/issue-143-footer-link-count
Open

officialasishkumar wants to merge 1 commit into
vycdev:developfrom
officialasishkumar:fix/issue-143-footer-link-count

Conversation

@officialasishkumar

Copy link
Copy Markdown

npm run test:e2e:privacy and npm run test:e2e:terms fail on develop: the narrow-screen footer test in each suite expects 7 footer links, but the Awards link from #126 made it 8. #137 fixed the same cause in the i18n suite; these two suites run under their own configs, so they were missed. This is what keeps the privacy and terms CI jobs red.

As #143 asks, the other footer assertions were checked against the new link too:

  • Link count: both tests now expect 8 links. The per-link loop (fully in the viewport, at least 44px tall, above the sticky call to action, not covered by another element) now also runs for Awards, and it passes at 320px and 390px in both themes.
  • Keyboard order (privacy): Awards sits between Support and Privacy, so the test now tabs from Support to Awards, checks its accessible name and /awards href, then tabs on to Privacy.
  • Keyboard order (terms): the test tabs from Privacy to Terms, which the new link doesn't affect, so it is unchanged.

Fixes #143

Validation (Chromium from the official Playwright 1.60 Docker image):

  • Before the change, playwright.privacy.config.ts fails the 4 footer tests with Expected: 7, Received: 8, matching the issue.
  • With the change, npx playwright test --config playwright.privacy.config.ts passes all 13 tests and npx playwright test --config playwright.terms.config.ts passes all 10.
  • npx eslint tests --max-warnings=0: passed.

The Awards link added in vycdev#126 is the eighth link in the landing footer
navigation, so the narrow-screen footer tests in the privacy and terms
suites failed on `toHaveCount(7)` at 320px and 390px in both themes.
vycdev#137 fixed the same cause in the i18n suite, but these suites run under
their own Playwright configs and were missed.

Both tests now expect eight links, so their per-link checks (fully in
view, 44px tall, above the sticky call to action, not covered) run for
the Awards link too. In the privacy test, Awards now sits between
Support and Privacy in the tab order: the test checks its name and
href and tabs through it before reaching Privacy. The terms test tabs
from Privacy to Terms, which the new link does not affect.

Fixes vycdev#143
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-13T10:23:42.621883Z
We couldn’t complete this review. Comment @codex review to try again.
50d5000 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

This branch has not been deployed

No deployments
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