mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
1.4 KiB
1.4 KiB
FancyZones UI tests
UI tests are implemented using Windows Application Driver.
Before running tests
- Install Windows Application Driver v1.2.1 from https://github.com/microsoft/WinAppDriver/releases/tag/v1.2.1.
- Enable Developer Mode in Windows settings
Running tests
- Exit PowerToys if it's running
- Run WinAppDriver.exe from the installation directory. Skip this step if installed in the default directory (
C:\Program Files (x86)\Windows Application Driver); in this case, it'll be launched automatically during tests. - Open
PowerToys.slnin Visual Studio and build the solution. - Run tests in the Test Explorer (
Test > Test ExplorerorCtrl+E, T).
Note: notifications or other application windows, that are shown above the window under test, can disrupt the testing process.
Extra tools and information
Test samples: https://github.com/microsoft/WinAppDriver/tree/master/Samples
While working on tests, you may need a tool that helps you to view the element's accessibility data, e.g. for finding the button to click. For this purpose, you could use AccessibilityInsights or WinAppDriver UI Recorder.
Note: close helper tools while running tests. Overlapping windows can affect test results.