Skip to content

Trace overview caption is smaller than its assertion permits #5159

Closed

Description

@leaf-agent

The caption fails computed fontSize >= 12. Inspect the actual visible caption and intended typography before deciding whether code or an arbitrary size assertion is wrong.

Evidence: push run 41576718956.

  • tests/browser/test_render_playwright_trace.py::test_trace_overview_shows_every_row_and_preserves_page_scrolling

AssertionError: assert False

>           assert widget.locator(".lf-trace-caption").evaluate(
E           AssertionError: assert False
E            +  where False = evaluate('node => parseFloat(getComputedStyle(node).fontSize) >= 12')
E            +    where evaluate = <Locator frame=<Frame name= url='http://127.0.0.1:38859/versions/v1.html'> selector='lf-trace >> .lf-trace-caption'>.evaluate
E            +      where <Locator frame=<Frame name= url='http://127.0.0.1:38859/versions/v1.html'> selector='lf-trace >> .lf-trace-caption'> = locator('.lf-trace-caption')
E            +        where locator = <Locator frame=<Frame name= url='http://127.0.0.1:38859/versions/v1.html'> selector='lf-trace'>.locator

This report triage has not run a local reproduction or established the cause. Reconcile current main, existing repairs and active workers, reproduce the focused boundary, then repair the owner of the rule. Split independent mechanisms if the grouped observations require different fixes. The complete failed log and pytest-results artifact on each run retain the traceback and screenshots.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 3, 2026
  2. leaf-agent commented on Nov 3, 2026

    @leaf-agent
    CollaboratorAuthor

    The test was stale, not the code. #4859 removed the trace's 12px floor on purpose and set its small text in --font-small, which is 11.5px at reading density, so the caption failed the old >= 12 check. #5204 swaps that floor for an assertion that the caption and the ruler labels share a font size, family and color. The test fails on main and passes with the change. CI went green at db64fe1, the review recorded that head for landing, and a tend-land run is merging it now. Nothing changes on screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions