Repository navigation
fix: match watch findings independently of extra node classes - #4321
Merged
Merged
Conversation
Keep full diagnostic paths while comparing their tag, ID and requested classes. Focus projection can add presentation classes without changing which node a deliberate fault concerns. Preserve exact path structure and all non-path finding fields. Closes #4312
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.
Focus projection in #4294 adds presentation classes to focused controls. The watches still report the injected faults, but assertions compared complete class strings and rejected the correct nodes. Shared finding assertions now compare each diagnostic step's tag, ID and requested classes while allowing additional classes and a different class order. The shift tests use the same comparison when identifying a node inside a host.
Diagnostic output retains all classes. Path length, shadow hosts, required classes, finding codes and other fields still have to match. This preserves #4294's focus behavior and the watches' fault detection.
Validation: all six browser cases reported in #4312 pass locally, including the injected 40px growth and 20px modality shifts. The three growth/modality cases failed locally before this change; the preceding and failing CI runs' JUnit records also bracket all six regressions. The five floating-plane variants linked from #4316 also pass, including both fault-free controls and all three injected 80px residuals. Eight focused developer-tool checks cover extra/reordered classes and rejection of wrong nodes, fields, hosts, paths, movement and missing required classes. Python compilation and Ruff checks pass.
Closes #4312 — automated triage