Skip to content

test: fix e2e failures on CI runners#34

Merged
DanteCpp merged 1 commit into
mainfrom
fix/e2e-ci-failures
Jul 9, 2026
Merged

test: fix e2e failures on CI runners#34
DanteCpp merged 1 commit into
mainfrom
fix/e2e-ci-failures

Conversation

@DanteCpp

@DanteCpp DanteCpp commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the 3 e2e failures introduced by b9bcd91:

  • layer-dialog (2 tests): the commit added menuLabel() in MenuBar.ts which strips trailing ellipses from menu labels, but the test still located the item by 'Layer options...'. Updated to 'Layer options'.
  • text-selection (1 test, CI-only): the test probed the ink gap between S and t in 17px Courier New. The Linux CI runners substitute Courier New with a different monospace font whose glyph ink differs by a few pixels, collapsing the ~2.5px gap into the hit-test padding (0.75 logical units per side). Scaled the text 4× (six=40 → 69px font, same aspect ratio): ink gaps grow 4× while the padding stays capped at 0.75, leaving a comfortable margin under any monospace substitution.

Testing

  • Full vitest suite: 752 passed
  • Full Playwright suite (chromium/firefox/webkit): 493 passed
  • Font-substitution robustness verified locally by rerunning text-selection with a nonexistent font name, forcing fallback to a different monospace on all 3 engines — passed

- layer-dialog: menu labels no longer render a trailing ellipsis
  (stripped by menuLabel() in MenuBar), so match "Layer options"
- text-selection: use 4x larger text (six=40, 69px font) so glyph ink
  gaps dwarf the 0.75-unit hit padding even when the platform
  substitutes Courier New with another monospace font, as the Linux
  CI runners do
@DanteCpp
DanteCpp merged commit c15b490 into main Jul 9, 2026
9 checks passed
@DanteCpp
DanteCpp deleted the fix/e2e-ci-failures branch July 9, 2026 11:53
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