Documentation

Desktop Navigation Layout Test

Goal

Prevent regressions where long translated desktop navigation labels overlap the header controls instead of wrapping within the available space.

Design

Add a pinned Playwright development dependency and a Python unittest that starts the Flask app on a temporary local port, loads a real page in Chromium at a desktop viewport, and lengthens a rendered navigation label. The test will assert that navigation links remain within the left header column, wrap to multiple rows when needed, and do not intersect the right-side controls.

The test workflow will install Playwright's Chromium browser before running the existing unittest discovery command. The test uses the real Flask route and CSS; it does not alter production styles or add a separate frontend test runner.

Verification

Run the targeted navigation test, the complete unittest suite, and the Ruff lint and format checks. The browser test must fail if navigation wrapping is removed or if links overlap the right-side controls.