Skip to content

test_a_widgets_attribute_takes_a_comment_like_any_other_passage: lf-board's Sortable filter passes a null card to #movable since #6759 #6848

Closed

Description

@leaf-agent

tests/browser/test_render_anchors.py::test_a_widgets_attribute_takes_a_comment_like_any_other_passage errors at teardown on main at 49007d755 (run 45113117050). It passed in push run 45104895190 at 10ac9da49.

The deciding error:

TypeError: Cannot read properties of null (reading 'getAttribute')
    at showsId (packages/default/widgets/lf-board.js:143:32)
    at #movable (packages/default/widgets/lf-board.js:422:12)
    at Sortable.filter (packages/default/widgets/lf-board.js:857:49)
    at Sortable._onTapStart (vendor/sortable.esm.js:1207:18)

Diagnosis so far: the board's Sortable filter (lf-board.js:857) calls this.#movable(card) with a null card. This happens on a tap that lands inside the board but not on an lf-card, such as the test's press on a widget's attribute. #6759 (f9112ee42) added line 422, if (!showsId(card)) …, which dereferences the card before anything else does. A pointer-down that is not on a card then throws on every board. The fix belongs where Sortable hands over a null target (in the filter callback, or by #movable not taking a non-card). Each #movable caller then needs checking against the contract that null holds.

Cause of a failure tracked in #6846.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #6850 fixes this. The board's Sortable filter now returns true for a null target, so a press inside a board that misses every card starts no drag and no longer throws. #movable keeps taking only cards: its other callers all pass one. The failing test reproduced on main at 39ee727dd and passes with the change. Review and the PR's CI are still pending, and tend-land takes the landing from here.

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