You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: remediate flaky delayed-content WPF UI test #191
The failure occurs while immediately locating the Load delayed content button through UI Automation, before the button is invoked. The control is present in TestWpfApp/Views/ShellView.xaml as LoadDelayedContent.
Evidence
The same commit passed the release workflow's Windows verification, including the WPF UI suite. The other WPF tests in the failed hosted run also passed. This points to a timing-sensitive UI Automation tree/materialization race rather than a missing control or product build failure.
Proposed remediation
Locate the button by stable automation ID LoadDelayedContent.
Retry the UI Automation lookup with a bounded timeout before asserting it exists.
Keep the test failure-fast after the timeout so a real regression is still visible.
Run the WPF UI test repeatedly on hosted Windows runners and confirm the normal Build and Test workflow is green.
Acceptance criteria
DelayedContent_WhenInvoked_ShouldBecomeAutomationVisible passes reliably across repeated hosted Windows runs.
The test still fails with a useful diagnostic if the control never materializes.
No WPF UI tests are skipped or weakened to achieve a green workflow.
Activity