Skip to content

test(shell): Let the browser pane open before closing it - #26042

Merged
MartinZikmund merged 1 commit into
unoplatform:masterfrom
ramezgerges:dev/rara/runner-layout-loop
Nov 5, 2026
Merged

MartinZikmund merged 1 commit into
unoplatform:masterfrom
ramezgerges:dev/rara/runner-layout-loop

Conversation

@ramezgerges

Copy link
Copy Markdown
Contributor

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_Model sometimes 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 inline SplitView is still running its opening transition, and the OpenInline setters stay applied. SplitView reports Closed, but its ContentRoot stays 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, whole Given_ShellLayout class):

  • Before: the cleanup failure hit 5 of 8 runs on the same build.
  • After: 8 of 8 runs passed, 15/15 tests each.

PR Checklist ✅

🤖 Generated with Claude Code

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]>
@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Nov 4, 2026
@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@ramezgerges
ramezgerges enabled auto-merge November 4, 2026 21:19
@MartinZikmund
MartinZikmund merged commit 7f3855e into unoplatform:master Nov 5, 2026
43 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants