Skip to content

test: expect a diagram node's margin trace on its frame, as #7439 draws it - #7506

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7497
Nov 28, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-7497

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#7439 put a drawing part's marks on the frame the part is drawn in (markedParts in dom/geometry.ts), and the margin entry's trace is one of those marks. So hovering the margin entry for the thread on diagram node U now traces the node's rect, not its g[data-id="U"]. test_threads_on_two_parts_of_a_picture_stand_an_entry_each_tracing_its_part still expected the group and has failed on main since #7439 landed. The test now expects the node's frame. It still checks what it was written to protect: one trace, on that node alone, not on the picture. Nothing changes in the product.

The test fails on current main (AssertionError: flow, traced element <rect … data-lf-traced>) and passes with this change.

#7497 names a second test, test_native_sidebar_is_placed_before_widget_activation. It passes at #7439 and first fails at #7447, so it has a different cause and this PR doesn't touch it. The issue has the diagnosis.

Refs #7497 — automated triage

#7439 moved a drawing part's marks, the margin entry's trace among them,
onto the frame the part is drawn in (`markedParts`), so pointing at the
thread on node U traces its `rect` rather than its group. The margin-entry
test still asked for the group. It now asks for the node's frame, and
still checks that only that node is traced, not the picture.

Refs #7497
@leaf-agent
leaf-agent merged commit def1669 into main Nov 28, 2026
8 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7497 branch November 28, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant