Repository navigation
test(shell): Let the browser pane open before closing it - #26042
Merged
MartinZikmund merged 1 commit intoNov 5, 2026
Merged
Conversation
On a starved CPU, closing WinUI's inline SplitView pane while its opening transition is still running leaves the OpenInline setters applied: the content stays in the second template column beside a closed 320px pane. The runner then lays out in 688 DIP instead of the full width, moving the test host by 160 DIP and failing the class's cleanup guard. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Xiaoy312
approved these changes
Nov 4, 2026
ramezgerges
enabled auto-merge
November 4, 2026 21:19
MartinZikmund
disabled auto-merge
November 5, 2026 09:25
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.
GitHub Issue: part of #9080
PR Type:
🐞 Bugfix (test only)
What changed? 🚀
Given_ShellLayout's cleanup guard checks that each test returns the test host to where it started. On the WinUI lane,When_Browser_Toggled_Pane_And_Toggle_Follow_View_Modelsometimes left it 160 DIP to the right and narrower (507,56,501→667,56,341). The following test's cleanup then failed the other way round.Cause: the test opens the browser pane and closes it right after
WaitForIdle. On a starved CPU, that close lands while WinUI's inlineSplitViewis still running its opening transition, and theOpenInlinesetters stay applied.SplitViewreportsClosed, but itsContentRootstays in the second template column, next to a closed 320 px pane column. The runner page then lays out in 688 DIP instead of 1008, which moves the test host by 160 DIP. It stays there until something else triggers a layout pass.Fix: after opening the pane, the test waits for the test host to stop moving, using the class's existing
WaitForSettledTestHostBounds, before it closes the pane.Validation (native WinUI via
winapp, window 1024×768, process pinned to one core, wholeGiven_ShellLayoutclass):PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code