Skip to content

Consolidate chart documentation tests and isolate rendering assertions - #1560

Merged
lovasoa merged 1 commit into
mainfrom
codex/chart-test-fixtures
Oct 24, 2026
Merged

lovasoa merged 1 commit into
mainfrom
codex/chart-test-fixtures

Conversation

@lovasoa

@lovasoa lovasoa commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Chart tests previously loaded the full 17-chart documentation page eight times, repeatedly hitting Chromium's slow :has() style invalidation. Keep one small documentation integration test with named steps that verifies the reference page, every inline and embedded chart, completed initialization, and browser errors.

Move legend visibility, labeled reference lines/bands, and horizontal-axis checks to four minimal SQL fixtures using the existing Playwright harness. Extend the existing stacking fixture to preserve alignment and zero-height coverage at both missing endpoints instead of adding duplicate stacking tests. The legend check also verifies that legends appear by default.

Validation:

  • npm test: 82 tests passed; 92 existing lint warnings.
  • npm run build: passed.
  • Playwright: all 59 chart fixture tests and the documentation integration test passed; the final stacked-bar legend fixture also passed its focused rerun.

@lovasoa
lovasoa enabled auto-merge October 24, 2026 20:38
@lovasoa
lovasoa added this pull request to the merge queue Oct 24, 2026
Merged via the queue into main with commit 99c6846 Oct 24, 2026
20 checks 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