Skip to content

Three On me tests fail on main since #5318 gave every On group a sticky band #5481

Closed

Description

@leaf-agent

Since #5318 ("Give every On group a sticky band, and fold Done under its own"), three On me tests fail on main: the list shows four cards where five are expected, an arriving card moves 115px, and the place names are empty.

Failing on main (b5f5c5d43, reproduced locally with uv run pytest --run-main):

  • tests/browser/widgets/test_on_panel.py::test_on_me_places_an_item_by_its_tab_s_title_or_label
    AssertionError: Locator expected to have text '['Move the runs into one sandbox', 'Second plan']' Actual value: [] Call log: - Expect "to_have_text" locator(".lf-fp-view[data-lf-route=\"queue\"]:not([data-lf-leaving])").locator(".lf-fp-on-place") with timeout 120000ms - waiting for locator(".lf-fp-view[data-lf-route=\"queue\"]:not([data-lf-leaving])").locator(".lf-fp-on-place") 243 × locator resolved to 0 elements
    
  • tests/browser/widgets/test_on_panel.py::test_an_item_arriving_above_takes_its_walk_place_and_moves_no_card_read
    AssertionError: ({'x': 236, 'y': 304, 'width': 528, 'height': 76}, {'x': 236, 'y': 419, 'width': 528, 'height': 76}) assert 419 == 304 ± 1 comparison failed Obtained: 419 Expected: 304 ± 1
    
  • tests/browser/widgets/test_on_panel.py::test_obligation_cards_keep_identity_and_walk_order_when_the_live_dom_moves
    AssertionError: Locator expected to have count '5' Actual value: 4 Call log: - Expect "to_have_count" locator(".lf-fp-view[data-lf-route=\"queue\"]:not([data-lf-leaving]) .lf-fp-on-item") with timeout 120000ms - waiting for locator(".lf-fp-view[data-lf-route=\"queue\"]:not([data-lf-leaving]) .lf-fp-on-item") 243 × locator resolved to 4 elements - unexpected value "4"
    

Introducing change: #5318 (d6bef36). Bisect over the 52c7000..649db78 range ran test_on_me_places_an_item_by_its_tab_s_title_or_label at each step; all three pass on d6bef3621^ and fail on d6bef3621.

CI evidence: first failing push run 41814482303, and every push run since through 41954384375. Each run's pytest-results-* artifact has the tracebacks and screenshots.

No cause has been diagnosed past the bisect. Read #5318's description for what it meant to change, then decide per .claude/skills/running-tend/SKILL.md, Reading a red suite, whether each test expects behaviour #5318 replaced (update the test) or caught a regression (fix the code).

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #5533 fixes this. One of the three failures was a real regression from #5318, and the other two were tests still expecting On me as it was before #5318.

    • Regression (test_an_item_arriving_above_takes_its_walk_place_and_moves_no_card_read): Give every On group a sticky band, and fold Done under its own #5318 spaced each group's box with a top margin on every group but the first. When a group joins at the top, the group that used to be first picks up that margin, and a margin change on an ancestor of the scroll anchor stops the browser's scroll anchoring. So the card being read dropped by the new group's height. fix: keep On me's read card still when a group joins above it #5533 hangs the space below each group but the last instead. The gap between groups stays the same, and leaf-dev stills shows 0 px changed in On me, Page Map and Threads.
    • Stale tests: a card no longer says its place over its question, since its band does, so the place test reads the bands. The identity test unfolds Done first, and lets the card whose element leaves the page be redrawn when it moves into "The whole page" group, which Give every On group a sticky band, and fold Done under its own #5318 described. It still checks focus and every other card's node.

    All three fail on 53337b5e9 and pass with #5533. Its review and CI are still pending.

    Two other On me grouping tests also fail on main, both locally and in CI, and nothing covers them, so I filed #5534.

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