Skip to content

fix(windows): choosing a sync provider through UI Automation no longer fails while the choice runs - #4710

Merged
datlechin merged 1 commit into
mainfrom
fix/windows-sync-provider-plan-ask
Nov 29, 2026
Merged

datlechin merged 1 commit into
mainfrom
fix/windows-sync-provider-plan-ask

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • Settings > Sync: choosing a provider now runs after the ComboBox's SelectionChanged returns, posted with DispatcherQueue.TryEnqueue. The box was disabled inside its own selection change, so a UI Automation SelectionItem.Select failed with UIA_E_ELEMENTNOTENABLED (0x80040200) even though the choice went through and the plan gate opened.
  • Behavior is unchanged and matches the Mac (SyncSettingsView.choose) and windows/docs/decisions/0029-tablepro-sync.md: TablePro Sync stays enabled while signed out, choosing it shows "TablePro Sync needs a paid plan", and the box goes back to Off. The test is right, so it is unchanged.
  • SettingsShowSyncOffAndTableProSyncAsksForAPlanWhileSignedOut came in with feat(windows): TablePro Sync settings, status and end-to-end encryption #4651 and never passed: that PR's app build failed, and every run since fix(windows): settings cards set Content only when there is one #4693 fixed the build failed this test on x64 and Arm64.
  • No changelog fragment: TablePro Sync on Windows has not shipped, and a mouse or keyboard user sees no change.

Test plan

  • Windows 11 Arm64 VM, Debug build of 1d3292c plus fix(windows): settings cards set Content only when there is one #4693, the tree whose core the VM had built; the changed method is the same on main. Before: SettingsShowSyncOffAndTableProSyncAsksForAPlanWhileSignedOut fails in Light and Dark with the CI error. After: the 3 tests in AccountSettingsTests.cs pass in Light and Dark (6 of 6).
  • VM probe: before the change, the box and both items report enabled until Select runs; Select throws, but the plan dialog opens. Disabling only the box inside SelectionChanged is enough to make Select throw. With this change, Select returns, the dialog opens and the box is disabled while it shows.
  • CI's windows / Windows (x64) and windows / Windows (Arm64) run the full UI suite on the Native AOT publish.

@datlechin
datlechin enabled auto-merge (squash) November 29, 2026 00:07
@datlechin
datlechin merged commit 82f4b5a into main Nov 29, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant