Repository navigation
test: Add regression test for #2136 - #22990
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Uno.UI runtime test intended to prevent regressions related to #2136, focusing on ItemsStackPanel stretching behavior in a ListView.
Changes:
- Introduces a new
Given_ItemsStackPanel_Stretchtest class with a regression test asserting full-width stretching forItemsPanelRootand the firstListViewItemcontainer.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22990/wasm-skia-net9/index.html |
|
|
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 10 days. |
|
This PR was closed because it has been stalled for 10 days with no activity. |
Pull request was closed
|
Claude finished @MartinZikmund's task in 2m 58s —— View job Code Review
Verdict: 2 issues require fixes before merge, 1 is a style nit. SummaryThe test correctly targets the regression (items not stretching in
Must fix:
Style:
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22990/wasm-skia-net9/index.html |
|
|
d2fa404 to
ae3be9b
Compare
|
Claude finished @MartinZikmund's task in 1m 39s —— View job Code Review
Verdict: 2 issues require fixes before merge, 1 is a style nit. SummaryThe test correctly targets the regression (items not stretching in
Must fix:
Style:
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22990/wasm-skia-net9/index.html |
|
|
|
Claude finished @MartinZikmund's task in 2m 16s —— View job Code Review
Verdict: 1 issue requires a fix before merge. What was addressedThe latest commit (
Remaining issue (must fix)Lines 5809–5817 — Two related problems in the panel assertions:
See the inline comment for the suggested fix. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22990/wasm-skia-net9/index.html |
|
Claude finished @MartinZikmund's task in 1m 28s —— View job Code Review
Verdict: ship ✅ All issues from prior review rounds are resolved in the current branch (
The test structure is sound: the No new issues found. |
Guard the new test class from Apple UIKit like the rest of the ListView tests (#17101), assert the default ItemsPanel type, and compare the item container against the measured panel width.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GKBgQoAmRmaFoXXZr93iLB
3831817 to
0105bfa
Compare
|
Claude finished @MartinZikmund's task in 3m 4s —— View job Code Review
Verdict: 1 minor fix needed. The test is otherwise well-structured and all previously identified issues have been addressed. One new finding surfaces from the CodeQL static analysis posted since the last review round:
Fix needed: Nullable flow on |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22990/wasm-skia-net9/index.html |
|
The build 229521 found UI Test snapshots differences: Details
|
|
@copilot address comments on this PR |
Co-authored-by: MartinZikmund <[email protected]>
Head branch was pushed to by a user without write access
|
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22990/wasm-skia-net9/index.html |
|
The build 229862 found UI Test snapshots differences: Details
|
4fdc650
into
feature/breakingchanges
Summary
Adds regression test for #2136.
The reported issue appears to be potentially fixed — the test(s) pass on current master (Skia target).
Test(s) added
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ListViewBase.cs→When_ListView_ItemsStackPanel_Children_Are_Stretched_To_Full_WidthNotes
The issue was reported on WebAssembly. Runtime tests run on Skia only — the fix should be verified on native targets as well.
The test verifies that items inside a vertical
ItemsStackPanelwithin aListViewstretch to fill the available width (300px container), checking both the panel root and individualListViewItemcontainers.Relates to #2136