Repository navigation
test: align the i18n footer test with the Awards link - #137
Merged
Merged
Conversation
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
force-pushed
the
fix/issue-136-i18n-e2e
branch
from
November 7, 2026 11:09
93aed9c to
868b467
Compare
This was referenced Nov 7, 2026
This was referenced 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the two landing footer tests in
tests/e2e/i18n.spec.tsthat fail ondevelop.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 defaultplaywright.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 ondevelopunder their intended config, so those changes are dropped.Closes #136
🤖 Generated with Claude Code