Repository navigation
Conversation
Six xWorks detail-view test fixtures now load a tool's detail view through the shared DetailMenuTestSupport helper. Until now each kept its own copy of the same four property-table steps, so a change to how a tool loads could reach some fixtures and miss others. The copies differed only in their assertion messages; the shared helper checks the same things. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1264 +/- ##
==========================================
- Coverage 40.92% 40.92% -0.01%
==========================================
Files 1602 1602
Lines 360800 360800
Branches 42245 42245
==========================================
- Hits 147648 147640 -8
- Misses 183655 183664 +9
+ Partials 29497 29496 -1 🚀 New features to boost your workflow:
|
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.
Six xWorks detail-view test fixtures now load a tool's detail view
through the shared DetailMenuTestSupport helper. Until now each kept
its own copy of the same four property-table steps, so a change to how
a tool loads could reach some fixtures and miss others.
The copies differed only in their assertion messages; the shared
helper checks the same things.
Reviewer notes
Start here:
Src/xWorks/xWorksTests/Avalonia/Hosting/DetailMenuTestSupport.cs,LoadRecordEditView-- the one loader every fixture now calls.What it does. Removes the private
LoadRecordEditViewfromDetailObjectCommandExecutionTests,DetailWritingSystemStateTests,LexiconMenuExecutionTests,RecordClerkNavigationContextTests,RecordEditViewActiveHostContractTestsandRecordEditViewSwitchTests(plus its no-argument overload, which loadedlexiconEdit). Each call site now callsDetailMenuTestSupport.LoadRecordEditView(m_propertyTable, "...")with the tool it loaded before. Test code only.Where to look.
RecordEditViewSwitchTestsnow pass"lexiconEdit".DetailObjectCommandExecutionTestsgains a null check onWindowConfigurationthat its copy lacked; the other copies already had it.using System.Xml;is dropped from the four fixtures that no longer use it.Deliberately not here. The helper stays in
DetailMenuTestSupport, although several of these fixtures do not test menus; its summary already names loading the detail view, andDetailViewStatePersistenceTestsalready called it from there.Verification.
build.ps1 -CommentHygiene -TokenHygieneclean. The six fixtures pass: 150 tests viatest.ps1 -TestFilter. No manual testing: nothing a user can see changes.Next: approve.
Preflight review details
Code Review Summary
Branch: LT-22691-loadrecordeditview-dedup
Base: origin/main (183be7c)
Date: 2026-11-25
Review model: Claude Opus 5.5
Files changed: 6
Overview
Test-only cleanup closing out LT-22691. Six xWorks Avalonia hosting fixtures each kept a
private copy of
LoadRecordEditView; they now call the sharedDetailMenuTestSupport.LoadRecordEditView(propertyTable, toolValue)that the newer fixturesalready use. The copies did the same four property-table steps and differed only in
assertion text.
using System.Xml;is dropped from the four fixtures that no longer need it.Contract/API Changes
None. Test code only; no production file changes.
Findings
Critical - Must address before merge
None.
Important - Should address before merge
None.
Minor - Consider
(Mark: leave it; the failure points at the WindowConfiguration line of theRecordEditViewSwitchTestsloses its descriptive message on the WindowConfigurationnull assert
shared helper, which is clear enough)
Fixtures that are not menu tests now depend on(Mark: leaveDetailMenuTestSupportthe helper where it is; its summary already names loading the detail view, and
DetailViewStatePersistenceTestsalready called it)Required Validation / Evidence
.\build.ps1 -CommentHygiene -TokenHygiene: succeeded, 0 warnings; comment and tokenhygiene clean.
.\test.ps1 -CommentHygiene -TokenHygiene -TestProject Src/xWorks/xWorksTests -TestFilter <the six fixtures>: 150 passed, 0 failed (DetailObjectCommandExecutionTests 62,LexiconMenuExecutionTests 70, RecordEditViewSwitchTests 12, RecordClerkNavigationContextTests
3, DetailWritingSystemStateTests 2, RecordEditViewActiveHostContractTests 1).
Positive Observations
Interview Notes
message for the top of the PR description.
Suggested Review Focus
lexiconEditforthe former no-argument overload).
🤖 Generated with Claude Code
This change is