Skip to content

test: align the i18n footer test with the Awards link - #137

Merged
vycdev merged 1 commit into
developfrom
fix/issue-136-i18n-e2e
Nov 7, 2026
Merged

vycdev merged 1 commit into
developfrom
fix/issue-136-i18n-e2e

Conversation

@vycdev

@vycdev vycdev commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Fixes the two landing footer tests in tests/e2e/i18n.spec.ts that fail on develop.

At 768px and 390px the footer wraps, and the test checks that the utility row lines up with the brand. It pinned Privacy as the row's first link. The Awards link added in #126 now comes first, so Privacy sits about 97px to the right. The layout is correct: the footer screenshots show Awards aligned with the brand. The test now checks whichever link starts the row, so adding a link doesn't break it again.

With this change, all 17 tests pass under the spec's own config (npm run test:e2e:i18n, against the Vite dev server). The footer tests also pass under the default playwright.config.ts.

An earlier version of this PR also changed three other tests (language loading, failed language download, and desktop save prompts). Those failed only because I ran the spec with the default config, which serves the production build, instead of playwright.i18n.config.ts. They pass on develop under their intended config, so those changes are dropped.

Closes #136

🤖 Generated with Claude Code

At narrow widths the landing footer test pinned Privacy as the first link
in the utility row. The Awards link from #126 now comes first, so check
whichever link starts the row.

Closes #136

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vycdev
vycdev force-pushed the fix/issue-136-i18n-e2e branch from 93aed9c to 868b467 Compare November 7, 2026 11:09
@vycdev vycdev changed the title test: repair i18n e2e tests that fail against the production build test: align the i18n footer test with the Awards link Nov 7, 2026
@vycdev
vycdev merged commit 3b40316 into develop Nov 7, 2026
officialasishkumar added a commit to officialasishkumar/Kromacut that referenced this pull request Nov 11, 2026
The Awards link from vycdev#126 added an eighth link to the landing footer.
The narrow-screen footer tests in privacy.spec.ts and terms.spec.ts
still expected seven, so `npm run test:e2e:privacy` and
`npm run test:e2e:terms` failed all four width/theme cases on develop,
and their CI jobs failed on every pull request. These suites have their
own Playwright configs, so the i18n footer fix in vycdev#137 did not reach
them.

- Expect eight footer links in both tests. Every link, Awards included,
  is still checked to be fully in the viewport, at least 44px tall,
  above the sticky launch bar, and not covered at its centre.
- The privacy test tabbed once from "Support Kromacut" and expected
  Privacy to take focus. Awards now opens the utility row, so assert
  that Tab reaches Awards first and Privacy on the next Tab, keeping
  the keyboard-order check instead of skipping over the new link.
- The terms test tabs from Privacy to Terms, which are still adjacent,
  so only its count changes.

Closes vycdev#143
vycdev pushed a commit that referenced this pull request Nov 15, 2026
The Awards link added in #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.
#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 #143
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