Repository navigation
test: expect a diagram node's margin trace on its frame, as #7439 draws it - #7506
Merged
Merged
Conversation
#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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#7439 put a drawing part's marks on the frame the part is drawn in (
markedPartsindom/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'srect, not itsg[data-id="U"].test_threads_on_two_parts_of_a_picture_stand_an_entry_each_tracing_its_partstill expected the group and has failed onmainsince #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