Skip to content

[Tests] NavigationView When_CompactPaneLength_Changed_PaneToggleButton_Updates is flaky on WinUI #23561

Closed

Description

@MartinZikmund

Summary

The runtime test Given_NavigationView.When_CompactPaneLength_Changed_PaneToggleButton_Updates is flaky when run against native WinUI (WinAppSDK). It has been excluded on NativeWinUI via [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)] to keep the WinUI parity runs stable. It still runs on Skia and WASM.

File: src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_NavigationView.cs

What to investigate

  • Root-cause the intermittent failure on WinUI — likely a timing/layout-settling race (the test toggles CompactPaneLength and asserts the PaneToggleButton updates, which may need an extra layout pass on native WinUI).
  • Make the assertion robust (e.g. wait for the relevant layout/visual state to settle) and re-enable on NativeWinUI by removing the PlatformCondition exclusion.

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions