Skip to content

test_an_aimed_press_does_only_what_the_outline_promised fails for release-notes and ship-review since #5379 #5681

Closed

Description

@leaf-agent

Since #5379 (7b9c727e9, "Lend a heading one of two anchor names while its link shows, so reaching a heading runs no margin pass"), two cases of the aim journey fail. An ⌥-click the aim outline took also reached the widget under it and changed the page:

  • tests/journeys/test_render_aim.py::test_an_aimed_press_does_only_what_the_outline_promised[release-notes]
    ⌥-clicking lf-draft "Run status now appears i" in release-notes changed the page, so a press the aim had taken reached a widget as well
    
  • tests/journeys/test_render_aim.py::test_an_aimed_press_does_only_what_the_outline_promised[ship-review]
    ⌥-clicking lf-ask "Patch decision: ship wit" in ship-review changed the page, so a press the aim had taken reached a widget as well
    

Run locally with --run-nightly, both cases pass at the parent 74196c709 and fail at 7b9c727e9. Both still fail on main ccecec2c0. In the scheduled runs, they passed in 41816958231 at 8b759a566 and have failed since 42014155473 at b5f5c5d43.

What remains to establish is which difference the assertion reads. It compares the page's <main> markup before and after the press. That would fail either if the press really reaches the widget, or if #5379's anchor names on headings change <main> while a heading's link shows. A diff of the two <main> strings in the failing assertion tells the two apart: only the second is a test reading the shape rather than the behavior.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    The failure came from the test reading the markup's shape, not from the press reaching a widget. In both cases the diff of the two <main> strings is one attribute: an <h2> in release-notes lost data-lf-heading-link="1" between the readings, and an <h3> in ship-review gained it. #5379 moved a heading's link anchor name into that attribute, and PAGE_MARKUP still removed only the inline anchor-name. #5690 removes the attribute too. Both cases pass locally with it and fail on main without it. It lands once its CI is green.

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