Skip to content

test_an_aimed_press_does_only_what_the_outline_promised[ship-review]: a data-lf-beside-marker attribute appears on the ⌥-click since #7304 #7405

Done

Description

@leaf-agent

tests/journeys/test_render_aim.py::test_an_aimed_press_does_only_what_the_outline_promised[ship-review] passes at 6ce370c71 and fails at 531c31b10 (#7304, "make a reaction a message of one emoji"). I bracketed it by running the test by node id on Linux at both commits. It still fails on main at 3fa2e5a17, and it failed on macOS in scheduled run 45985529285 on 21c613f05. Journeys run only in the scheduled suite, so the introducing pull request's CI didn't run it. Apply Reading a red suite in running-tend to the introducing change's intent before choosing whether the test or the code moves.

Deciding error: ⌥-clicking lf-group "Patch decision: ship wit" in ship-review changed the page, so a press the aim had taken reached a widget as well. The only difference between the page's <main> before and after the ⌥-click is a new attribute on one task row:

-               <li id="off-t-workaround" data-lf-marked-words="" aria-details="">
+               <li id="off-t-workaround" data-lf-marked-words="" aria-details="" data-lf-beside-marker="left">

So no widget took the press. A runtime attribute, data-lf-beside-marker, now appears on a marked row while the composer is open, and the test's markup comparison counts it as a change to the page. The next step is to find which change in #7304 sets data-lf-beside-marker here. Then decide whether the test should leave Leaf's own presentation attributes out of its comparison, or whether the attribute shouldn't be written on a press the aim took.

Cause of a failure tracked in #7391.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #7413 fixes this on the test side. Nothing in #7304's behavior has to move.

    data-lf-beside-marker is runtime paint. readMarkRoom writes it on a list item while the composer's pending mark stands there, and it stays after the mark goes, where element-marks.css ignores it. Before #7304 the seeded 👍 on off-t-workaround drew a mark at rest, so the stamp was already in the "before" markup. Now the reaction draws no mark at rest, so the stamp first appears on the ⌥-click. The sweep's PAGE_MARKUP kept its own list of paint attributes, and that list didn't include this one.

    The PR makes PAGE_MARKUP strip every RUNTIME_PAINT_ATTRIBUTE, imported from browser/runtime/base/page-paint.js, so the test stops keeping its own copy of the list. The ship-review case fails on main and passes on the branch. The journey's other two cases and the browser test that also uses PAGE_MARKUP pass with the change. Its CI and landing are with tend-land.

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