ui-tests-migration
PowerToys UI-Tests Migration (legacy → .Next)
Legacy retirement:
mainno longer containssrc/common/UITestAutomationor its test projects. Use the existing.Nextsuites and Scenario B for current development. Scenario A and the legacy comparisons in this skill are historical guidance for older branches; do not restore the retired framework or tests. Existing.Nextproject names remain unchanged.
Convert a PowerToys module's UI tests from the legacy WinAppDriver / Selenium / Appium harness
(Microsoft.PowerToys.UITest, in src/common/UITestAutomation/) to the new winappcli harness
(Microsoft.PowerToys.UITest.Next, in src/common/UITestAutomation.Next/).
The new harness shells out to winapp.exe and parses its JSON — no WinAppDriver server on :4723,
no Selenium/Appium NuGet packages, no WindowsElement/WindowsDriver. The public shape
(UITestBase, Session, Find<T>, By, element wrappers like ToggleSwitch) is deliberately
similar, so most of the work is mechanical API mapping plus reworking a few patterns that don't
translate one-to-one (XPath selectors, stateful elements, instance mouse/keyboard helpers).