test: e2e tests for locale translation of data-driven content#225
test: e2e tests for locale translation of data-driven content#225
Conversation
Covers the gap identified when investigating the AI scaling language regression: preset pills, chart panel titles, dropdown options, metric row labels, and column headers in German and Spanish locales. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
world3 | 48d55a1 | Commit Preview URL Branch Preview URL |
Apr 10 2026, 07:28 AM |
Simulation CheckBAU scenario executed successfully on this branch. Simulation Summary (click to expand)BAU Scenario PlotGenerated automatically by CI on commit |
There was a problem hiding this comment.
Pull request overview
Adds Playwright E2E coverage to ensure locale-prefixed routes correctly translate data-driven UI content (not just static navigation/chrome), addressing a previously untested regression area.
Changes:
- Introduces a new E2E spec asserting translated preset pills, chart titles, compare dropdown options, metric labels, and compare table headers in German and Spanish.
- Exercises both /explore and /compare flows under locale-prefixed URLs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| * E2E tests for locale translation of data-driven content. | ||
| * | ||
| * The existing localization tests only check static chrome (nav, toggles). | ||
| * These tests verify that preset names, preset descriptions, and variable |
There was a problem hiding this comment.
File header comment says these tests verify preset descriptions are translated, but none of the assertions currently check descriptions (only preset names, chart titles, and metric labels). Either add an assertion that verifies a translated description is shown (e.g., in compare dropdown option text after the dash) or adjust the comment to avoid misleading future readers.
| * These tests verify that preset names, preset descriptions, and variable | |
| * These tests verify that preset names, chart titles, and variable/metric |
Summary
locale-content.spec.tscovering the gap identified when investigating a reported regression in the AI scaling sectionTest plan
npx playwright test test/e2e/locale-content.spec.ts)🤖 Generated with Claude Code