2022-02-24 06:03:41 +08:00
## Install tests
* install a **previous version** on a clean machine (a clean machine doesn't have the `%localappdata%\Microsoft\PowerToys` folder)
* open the Settings and for each module change at least one option
* open the FancyZones editor and create two custom layouts:
* a canvas layout with 2 zones, use unicode chars in the layout's name
* one from grid template using 4 zones and splitting one zone
* apply the custom canvas layout to the primary desktop
* create a virtual desktop and apply the custom grid layout
* if you have a second monitor apply different templates layouts for the primary desktop and for the second virtual desktop
* install the new version (it will uninstall the old version and install the new version)
2022-02-24 18:08:59 +08:00
- [x] verify the settings are preserved and FancyZones configuration is still the same
2022-02-24 06:03:41 +08:00
## General Settings
**Admin mode:**
2022-02-24 18:08:59 +08:00
- [x] restart PT and verify it runs as user
- [x] restart as admin and set "Always run as admin"
- [x] restart PT and verify it runs as admin
2022-02-24 06:03:41 +08:00
* if it's not on, turn on "Run at startup"
2022-02-24 18:08:59 +08:00
- [x] reboot the machine and verify PT runs as admin (it should not prompt the UAC dialog)
2022-02-24 06:03:41 +08:00
* turn Always run as admin" off
2022-02-24 18:08:59 +08:00
- [x] reboot the machine and verify it now runs as user
2022-02-24 06:03:41 +08:00
**Modules on/off:**
2022-02-24 18:08:59 +08:00
- [x] turn off all the modules and verify all module are off
- [x] restart PT and verify that all module are still off in the settings page and they are actually inactive
- [x] turn on all the module, all module are now working
- [x] restart PT and verify that all module are still on in the settings page and they are actually working
2022-02-24 06:03:41 +08:00
## FancyZones Editor
2022-02-24 18:38:59 +08:00
- [x] Open editor from the settings
- [x] Open editor with a shortcut
- [x] Create a new layout (grid and canvas)
- [x] Duplicate a template and a custom layout
- [x] Delete layout
- [x] Edit templates (number of zones, spacing, distance to highlight adjacent zones). Verify after reopening the editor that saved settings are kept the same.
- [x] Edit canvas layout: zones size and position, create or delete zones.
- [x] Edit grid layout: split, merge, resize zones.
- [x] Check `Save and apply` and `Cancel` buttons behavior after editing.
- [x] Assign a layout to each monitor.
- [x] Assign keys to quickly switch layouts (custom layouts only), `Win + Ctrl + Alt + number` .
2022-02-24 06:03:41 +08:00
## FancyZones
2022-02-24 18:46:04 +08:00
- [x] Switch between `Allow zones to span across monitors` on and off. Verify that layouts are applied correctly in both cases.
- [x] Change zone colors and opacity.
- [x] Exclude some apps, verify that they're not applicable to a zone.
- [x] Launch PT in user mode, try to assign a window with administrator privileges to a zone. Verify the notification is shown.
- [x] Launch PT in administrator mode, assign a window with administrator privileges.
- [x] Create virtual desktop, verify that there are the same layouts as applied to the previous virtual desktop.
- [x] After creating a virtual desktop apply another layout or edit the applied one. Verify that the other virtual desktop layout wasn't changed.
- [x] Delete an applied custom layout in the Editor, verify that there is no layout applied instead of it.
2022-02-24 06:03:41 +08:00
* Switch between layouts with quick keys.
2022-02-24 18:46:04 +08:00
- [x] Switch with `Win` + `Ctrl` + `Alt` + `key`
- [x] Switch with just a key while dragging a window.
2022-02-24 06:03:41 +08:00
* Change screen resolution or scaling.
2022-02-24 18:46:04 +08:00
- [x] Assign grid layout, verify that the assigned layout fits the screen.
2022-02-24 06:03:41 +08:00
NOTE: canvas layout could not fit the screen if it was created on a monitor with a different resolution.
2022-02-24 18:46:04 +08:00
- [x] Disable FZ
- [x] Re-enable FZ, verify that everything is in the same state as it was before disabling.
2022-02-24 06:03:41 +08:00
* Test layout resetting.
Before testing
* Remove all virtual desktops
* Remove `CurrentVirtualDesktop` from `\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\SessionInfo\1\VirtualDesktops`
* Remove `VirtualDesktopIDs` from `\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VirtualDesktops`
2022-02-24 18:46:04 +08:00
- [x] Test screen locking
2022-02-24 06:03:41 +08:00
* Set custom layouts on each monitor
* Lock screen / unplug monitor / plug monitor
* Verify that layouts weren't reset to defaults
2022-02-24 18:46:04 +08:00
- [x] Test restart
2022-02-24 06:03:41 +08:00
* Set custom layouts on each monitor
* Restart the computer
* Verify that layouts weren't reset to defaults
## File Explorer Add-ons
* Running as user:
* go to PowerToys repo root
2022-02-24 18:52:48 +08:00
- [x] verify the README.md Preview Pane shows the correct content
2022-02-24 06:03:41 +08:00
* go to PowerToys repo and visit src\modules\ShortcutGuide\ShortcutGuide\svgs
2022-02-24 18:52:48 +08:00
- [x] verify Preview Pane works for the SVG files
- [x] verify the Icon Preview works for the SVG file (loop through different icon preview sizes)
2022-02-24 06:03:41 +08:00
* go to PowerToys repo and visit src\modules\previewpane\UnitTests-PdfPreviewHandler\HelperFiles
2022-02-24 18:52:48 +08:00
- [x] verify Preview Pane works for the PDF file
- [x] verify the Icon Preview works for the PDF file (loop through different icon preview sizes)
2022-02-24 06:03:41 +08:00
* go to PowerToys repo and visit src\modules\previewpane\UnitTests-GcodePreviewHandler\HelperFiles
2022-02-24 18:52:48 +08:00
- [x] verify Preview Pane works for the gcode file
- [x] verify the Icon Preview works for the gcode file (loop through different icon preview sizes)
2022-02-24 06:03:41 +08:00
* go to PowerToys repo and visit src\modules\previewpane\UnitTests-StlThumbnailProvider\HelperFiles
2022-02-24 18:52:48 +08:00
- [x] verify the Icon Preview works for the stl file (loop through different icon preview sizes)
2022-02-24 06:03:41 +08:00
* go to PowerToys repo and visit src\runner
2022-02-24 18:52:48 +08:00
- [x] verify Preview Pane works for source files (shows syntax highlighting)
2022-02-24 06:03:41 +08:00
* Running as admin (or user since recently):
* open the Settings and turn off the Preview Pane and Icon Previous toggles
* go to PowerToys repo root
2022-02-24 18:52:48 +08:00
- [x] verify the README.md Preview Pane doesn't show any content
2022-02-24 06:03:41 +08:00
* go to PowerToys repo and visit src\modules\ShortcutGuide\ShortcutGuide\svgs
2022-02-24 18:52:48 +08:00
- [x] verify Preview Pane doesn't show the preview for the SVG files
2022-02-24 06:03:41 +08:00
* the Icon Preview for the existing SVG will still show since the icons are cached (you can also use `cleanmgr.exe` to clean all thumbnails cached in your system). You may need to restart the machine for this setting to apply as well.
2022-02-24 18:52:48 +08:00
- [x] copy and paste one of the SVG file and verify the new file show the generic SVG icon
2022-02-24 06:03:41 +08:00
* go to PowerToys repo and visit src\modules\previewpane\UnitTests-PdfPreviewHandler\HelperFiles
2022-02-24 18:52:48 +08:00
- [x] verify Preview Pane doesn't show the preview for the PDF file
2022-02-24 06:03:41 +08:00
* go to PowerToys repo and visit src\modules\previewpane\UnitTests-GcodePreviewHandler\HelperFiles
2022-02-24 18:52:48 +08:00
- [x] verify Preview Pane doesn't show the preview for the gcode file
2022-02-24 06:03:41 +08:00
* go to PowerToys repo and visit src\modules\previewpane\UnitTests-StlThumbnailProvider\HelperFiles
2022-02-24 18:52:48 +08:00
- [x] verify Preview Pane doesn't show the preview for the stl file (a generated thumbnail would show when there's no preview)
2022-02-24 06:03:41 +08:00
* go to PowerToys repo and visit src\runner
2022-02-24 18:52:48 +08:00
- [x] verify Preview Pane doesn't show the preview for source code files or that it's a default previewer instead of Monaco
2022-02-24 06:03:41 +08:00
## Keyboard Manager
UI Validation:
- [ ] In Remap keys, add and remove rows to validate those buttons. While the blank rows are present, pressing the OK button should result in a warning dialog that some mappings are invalid.
- [ ] Using only the Type buttons, for both the remap windows, try adding keys/shortcuts in all the columns. The right-side column in both windows should accept both keys and shortcuts, while the left-side column will accept only keys or only shortcuts for Remap keys and Remap shortcuts respectively. Validate that the Hold Enter and Esc accessibility features work as expected.
- [ ] Using the drop downs try to add key to key, key to shortcut, shortcut to key and shortcut to shortcut remapping and ensure that you are able to select remapping both by using mouse and by keyboard navigation.
- [ ] Validate that remapping can be saved by pressing the OK button and re-opening the windows loads existing remapping.
Remapping Validation:
For all the remapping below, try pressing and releasing the remapped key/shortcut and pressing and holding it. Try different behaviors like releasing the modifier key before the action key and vice versa.
- [ ] Test key to key remapping
- A->B
- Ctrl->A
- A->Ctrl
- Win->B (make sure Start menu doesn't appear accidentally)
- B->Win (make sure Start menu doesn't appear accidentally)
- A->Disable
- Win->Disable
- [ ] Test key to shortcut remapping
- A->Ctrl+V
- B->Win+A
- [ ] Test shortcut to shortcut remapping
- Ctrl+A->Ctrl+V
- Win+A->Ctrl+V
- Ctrl+V->Win+A
- Win+A->Win+F
- [ ] Test shortcut to key remapping
- Ctrl+A->B
- Ctrl+A->Win
- Win+A->B
* Test app-specific remaps
- [ ] Similar remaps to above with Edge (entered as `msedge` ), VSCode (entered as `code` ) and cmd. For cmd try admin and non-admin (requires PT to run as admin)
- [ ] Try some cases where focus is lost due to the shortcut. Example remapping to Alt+Tab or Alt+F4
- [ ] Test switching between remapping while holding down modifiers - Eg. Ctrl+D->Ctrl+A and Ctrl+E->Ctrl+V, hold Ctrl and press D followed by E. Should select all and paste over it in a text editor. Similar steps for Windows key shortcuts.
## Shortcut Guide
* Run PowerToys as user:
2022-02-24 18:56:21 +08:00
- [x] Verify `Win + Shift + /` opens the guide
- [x] Change the hotkey to a different shortcut (e.g. `Win + /` ) and verify it works
- [x] Set Shortcut Guide to start with a Windows key press and verify it works.
2022-02-24 06:03:41 +08:00
* Restore the `Win + Shift + /` hotkey.
2022-02-24 18:56:21 +08:00
- [x] Open the guide and close it pressing `Esc`
- [x] Open the guide and close it pressing and releasing the `Win` key
2022-02-24 06:03:41 +08:00
* With PowerToys running as a user, open an elevated app and keep it on foreground:
2022-02-24 18:56:21 +08:00
- [x] Verify `Win + Shift + /` opens the guide
- [x] Verify some of the shortcuts shown in the guide work and the guide is closed when pressed
2022-02-24 06:03:41 +08:00
## Mouse Utils
Find My Mouse:
* Enable FindMyMouse. Then, without moving your mouse:
2022-02-24 19:13:27 +08:00
- [x] Press Left Ctrl twice and verify the overlay appears.
- [x] Press any other key and verify the overlay disappears.
- [x] Press Left Ctrl twice and verify the overlay appears.
- [x] Press a mouse button and verify the overlay disappears.
2022-02-24 06:03:41 +08:00
* Disable FindMyMouse. Verify the overlay no longer appears when you press Left Ctrl twice.
* Enable FindMyMouse. Then, without moving your mouse:
2022-02-24 19:13:27 +08:00
- [x] Press Left Ctrl twice and verify the overlay appears.
2022-02-24 06:03:41 +08:00
* Enable the "Do not activate on game mode" option. Start playing a game that uses CG native full screen.
2022-02-24 19:13:27 +08:00
- [x] Verify the overlay no longer appears when you press Left Ctrl twice.
2022-02-24 06:03:41 +08:00
* Disable the "Do not activate on game mode" option. Start playing the same game.
2022-02-24 19:13:27 +08:00
- [x] Verify the overlay appears when you press Left Ctrl twice. (though it'll likely minimize the game)
2022-02-24 06:03:41 +08:00
* Test the different settings and verify they apply:
2022-02-24 19:13:27 +08:00
- [x] Overlay opacity
- [x] Background color
- [x] Spotlight color
- [x] Spotlight radius
- [x] Spotlight initial zoom (1x vs 9x will show the difference)
- [x] Animation duration
- [x] Change activation method to shake and activate by shaking your mouse pointer
- [x] Excluded apps
2022-02-24 06:03:41 +08:00
Mouse Highlighter:
* Enable Mouse Highlighter. Then:
2022-02-24 19:13:27 +08:00
- [x] Press the activation shortcut and press left and right click somewhere, verifying the hightlights are applied.
- [x] With left mouse button pressed, drag the mouse and verify the hightlight is dragged with the pointer.
- [x] With right mouse button pressed, drag the mouse and verify the hightlight is dragged with the pointer.
- [x] Press the activation shortcut again and verify no highlights appear when the mouse buttons are clicked.
- [x] Disable Mouse Highlighter and verify that the module is not activated when you press the activation shortcut.
2022-02-24 06:03:41 +08:00
* Test the different settings and verify they apply:
2022-02-24 19:13:27 +08:00
- [x] Change activation shortcut and test it
- [x] Left button highlight color
- [x] Right button highlight color
- [x] Opacity
- [x] Radius
- [x] Fade delay
- [x] Fade duration
2022-02-24 06:03:41 +08:00
Mouse Pointer Crosshairs:
* Enable Mouse Pointer Crosshairs. Then:
2022-02-24 19:13:27 +08:00
- [x] Press the activation shortcut and verify the crosshairs appear, and that they follow the mouse around.
- [x] Press the activation shortcut again and verify the crosshairs disappear.
- [x] Disable Mouse Pointer Crosshairs and verify that the module is not activated when you press the activation shortcut.
2022-02-24 06:03:41 +08:00
* Test the different settings and verify they apply:
2022-02-24 19:13:27 +08:00
- [x] Change activation shortcut and test it
- [x] Crosshairs color
- [x] Crosshairs opacity
- [x] Crosshairs center radius
- [x] Crosshairs thickness
- [x] Crosshairs border color
- [x] Crosshairs border size
2022-02-24 06:03:41 +08:00
## VCM
- [ ] Check "Hide toolbar when both camera and micrphone are unmuted" and verify that it works
- [ ] Uncheck it, mute the microphone with the hotkey and make sure the toolbar doesn't hide after a timeout
- [ ] Go to some video conference application settings, e.g. meet.google.com, Microsoft Teams, Skype. "Select PowerToys VideoConference Mute" camera as an active device and try to mute it with a hotkey
- [ ] Go to Control Panel -> Sound -> Recording -> select default mic -> open its properties -> Levels. Now mute the microphone with a corresponding hotkey and verify that mute icon on the right side of volume slider reflects its muted status.
- [ ] Verify that changing "toolbar position" setting works
- [ ] Select an overlay image and verify that muting camera now shows the image instead of black screen. (Don't forget to restart the application which uses the camera).
- [ ] Try to select an overlay image when PT process is elevated. (Currently doesn't work)
## Awake
- [ ] Try out the features and see if they work, no list at this time.
## Always on Top
2022-02-24 19:13:27 +08:00
- [x] Pin/unpin a window, verify it's topmost/not topmost.
- [x] Pin/unpin a window, verify the border appeared/disappeared.
- [x] Switch virtual desktop, verify border doesn't show up on another desktop.
- [x] Minimize and maximize pinned window, verify the border looks as usual.
- [x] Change border color and thickness.
- [x] Verify if sound is played according to the sound setting.
- [x] Exclude app, try to pin it.
- [x] Exclude already pinned app, verify it was unpinned.
- [x] Try to pin the app in the Game Mode.