oliver-zehentleitner / maity

web: layout e2e steps measure at 360 px as well as 390 px

Sign in to report

tsk-et029v5k73f1 Done An agent

Adopted by the maintainer from the jour fixe of 2026-11-08 (round jfx-x83wyff3vxm0, req-nqskjzcf2rr1). The layout steps in web/tools/e2e.py that measure at 390 px get 360 px too, as one small web PR (CI fonts wrapped at 390 px where local fonts did not; #1477 showed 360 px reproduces it locally). q445 offered to take it after the language catch-up (tsk-ya56x9gx986r).

Notes

  1. An agent · Nov 8, 2026, 10:28 UTC

    Plan (q445), before code. Base: main 213022d5. One web PR, web/tools/e2e.py only (plus its changelog fragment and, if a docstring changes, nothing else).

    Why 360: CI's fonts are wider than the local ones, so a wrap that CI hits at 390 px may not show locally (#1477's red web-e2e). At 360 px it shows locally too. 360×780 is a common Android size; #1477 added it to join_reports_layout, and chat_pause_state already runs at 390 and 360.

    A. Fixture steps with a width loop: add `(360, 780)` to the tuple. Each runs every assertion it already has at 360 as well, with the width in its where:

    • paths_views (:2723): the Paths face fits, folded and opened, banner on/off;
    • notification_sessions_layout (:2997): Current sessions and the bell's pinned block;
    • switch_busy_layout (:3165): the page switch's bar (overflow ≤ 0), light/dark, banner on/off;
    • jour_fixe_settings_layout (:3232);
    • account_tabs_layout (:3302);
    • profile_public_link_layout (:3429);
    • fixture_views, the Why view at phone width (:2654): one more pass at 360.

    B. Real-hub steps that measure once at 390: repeat the same measurement at 360 right after it, with the message naming the width instead of a hard "390 px":

    • scenario "phone width: no view scrolls sideways" (:1115): header text hidden, every tab reachable, no view wider than the screen;
    • wide_lines_step (:1317): add (360, 780, "light") to its loop;
    • id_links_step (:1478): the card's panel at least 300 px wide, page not wider than the screen;
    • chat_pause_state, the global chat list (:1798): fits(...) at 360 too;
    • mail_factor_join (:2469): a 63-character project name does not widen the page;
    • notifications_step (:4146, :4175): the header's buttons in one row with the logo; the Chats page's lead menu stays on screen;
    • release_contract (:4428): the open release editor stays inside the screen.

    How a step fails at 360: with the assertions it already has, nothing new: the page's scrollWidth above innerWidth, an element's box outside its row or the screen, a bar's overflow above 0, a header button's middle outside the others' height. Each message says "at 360 px" (or the where with 360x780), so the CI log names the width.

    Left out: the axe passes (PASSES, :89; accessibility, not layout); steps that use 390 without measuring (send_talk_step :1236, note_edit_survives_redraw_step :1384, site_json_step :4827, start_page_step :4959); chat_height_views (:2800), whose 375×667 row already covers a narrow phone and whose fit/no-fit rule depends on the height.

    Proof: full real-hub e2e locally, every step passes, screenshots of the new 360 passes. One mutant per group: a CSS change that only breaks below 390 px (e.g. a min-width on the account tabs / the Paths face), shown green at 390 and red at 360, then reverted.

    Boundary: The change guarantees that each listed step measures at 360 px with the checks it already makes. It does not guarantee that every view fits at 360, nor that all phone sizes are covered, and it adds no new kinds of checks. If a step fails at 360 on main, that is a real layout bug: I report it to the lead with the step and a screenshot. A one-line CSS fix may go in this PR with the lead's OK; anything bigger becomes its own card, and that step's 360 pass waits for it. The run gets longer by about one pass per listed step. P3: wording of messages and docstrings, the choice of 780 as the height, and extending 360 to steps listed under "Left out".