2022-02-24 06:03:41 +08:00
## Functional tests
Regressions:
2022-02-24 20:09:49 +08:00
- [x] https://github.com/microsoft/PowerToys/issues/1414#issuecomment-593529038
- [x] https://github.com/microsoft/PowerToys/issues/1524
2022-02-24 06:03:41 +08:00
## Localization
Change the Winodws language to a language different than English. Then verify if the following screens change their language:
2022-02-24 20:16:50 +08:00
- [x] System tray menu items
- [x] Settings
- [x] OOBE (What's new)
- [x] Keyboard Manager Editor
- [x] Color Picker (check the tooltips)
- [x] FancyZones Editor
- [x] Power Rename (new WinUI 3 may not be localized)
- [x] PowerToys Run ("Start typing" string is localized, for example)
- [x] Image Resizer
- [x] Shortcut Guide (Windows controls are localized)
- [x] File Explorer menu entries for Image Resizer and Power Rename
2022-02-24 06:03:41 +08:00
## General Settings
**Admin mode:**
2022-02-24 20:44:45 +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 20:44:45 +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 20:44:45 +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 20:44:45 +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
## Color Picker
* Enable the Color Picker in settings and ensure that the hotkey brings up Color Picker
2022-02-24 21:39:06 +08:00
- [x] when PowerToys is running unelevated on start-up
- [x] when PowerToys is running as admin on start-up
- [x] when PowerToys is restarted as admin, by clicking the restart as admin button in the settings
- [x] Change `Activate Color Picker shortcut` and check the new shortcut is working
- [x] Try all three `Activation behavior` s(`Color Picker with editor mode enabled`, `Editor` , `Color Picker only` )
- [x] Change `Color format for clipboard` and check if the correct format is copied from the Color picker
- [x] Try to copy color formats to the clipboard from the Editor
- [x] Check `Show color name` and verify if color name is shown in the Color picker
- [x] Enable one new format, disable one existing format, reorder enabled formats and check if settings are populated to the Editor
- [x] Select a color from the history in the Editor
- [x] Remove color from the history in the Editor
- [x] Open the Color Picker from the Editor
- [x] Open Adjust color from the Editor
- [x] Check Color Picker logs for errors
2022-02-24 06:03:41 +08:00
## File Explorer Add-ons
* Running as user:
* go to PowerToys repo root
2022-02-24 21:46:54 +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 21:46:54 +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 21:46:54 +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 21:46:54 +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 21:46:54 +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 21:46:54 +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 21:46:54 +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 21:46:54 +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 21:46:54 +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 21:46:54 +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 21:46:54 +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 21:46:54 +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 21:46:54 +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
## Image Resizer
2022-02-24 22:55:23 +08:00
- [x] Disable the Image Resizer and check that `Resize images` is absent in the context menu
- [x] Enable the Image Resizer and check that `Resize images` is present in the context menu
- [x] Remove one image size and add a custom image size. Open the Image Resize window from the context menu and verify that changes are populated
- [x] Resize one image
- [x] Resize multiple images
- [x] Open the image resizer to resize a `.gif` file and verify the "Gif files with animations may not be correctly resized." warning appears.
2022-02-24 06:03:41 +08:00
2022-02-24 22:55:23 +08:00
- [x] Resize images with `Fill` option
- [x] Resize images with `Fit` option
- [x] Resize images with `Stretch` option
2022-02-24 06:03:41 +08:00
2022-02-24 22:55:23 +08:00
- [x] Resize images using dimension: Centimeters
- [x] Resize images using dimension: Inches
- [x] Resize images using dimension: Percents
- [x] Resize images using dimension: Pixels
2022-02-24 06:03:41 +08:00
2022-02-24 22:55:23 +08:00
- [x] Change `Filename format` to `%1 - %2 - %3 - %4 - %5 - %6` and check if the new format is applied to resized images
- [x] Check `Use original date modified` and verify that modified date is not changed for resized images. Take into account that `Resize the original pictures(don't create copy)` should be selected
- [x] Check `Make pictures smaller but not larger` and verify that smaller pictures are not resized
- [x] Check `Resize the original pictures (don't create copies)` and verify that the original picture is resized and a copy is not created
- [x] Uncheck `Ignore the orientation of pictures` and verify that swapped width and height will actually resize a picture if the width is not equal to the height
2022-02-24 06:03:41 +08:00
## Keyboard Manager
UI Validation:
2022-02-24 23:05:22 +08:00
- [x] 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.
- [x] 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.
- [x] 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.
- [x] Validate that remapping can be saved by pressing the OK button and re-opening the windows loads existing remapping.
2022-02-24 06:03:41 +08:00
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.
2022-02-24 23:05:22 +08:00
- [x] Test key to key remapping
2022-02-24 06:03:41 +08:00
- 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
2022-02-24 23:05:22 +08:00
- [x] Test key to shortcut remapping
2022-02-24 06:03:41 +08:00
- A->Ctrl+V
- B->Win+A
2022-02-24 23:05:22 +08:00
- [x] Test shortcut to shortcut remapping
2022-02-24 06:03:41 +08:00
- Ctrl+A->Ctrl+V
- Win+A->Ctrl+V
- Ctrl+V->Win+A
- Win+A->Win+F
2022-02-24 23:05:22 +08:00
- [x] Test shortcut to key remapping
2022-02-24 06:03:41 +08:00
- Ctrl+A->B
- Ctrl+A->Win
- Win+A->B
* Test app-specific remaps
2022-02-24 23:05:22 +08:00
- [x] 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)
- [x] Try some cases where focus is lost due to the shortcut. Example remapping to Alt+Tab or Alt+F4
- [x] 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.
2022-02-24 06:03:41 +08:00
## PowerRename
2022-02-24 23:13:27 +08:00
- [x] Check if disable and enable of the module works.
- [x] Check that with the `Show icon on context menu` icon is shown and vice versa.
- [x] Check if `Appear only in extended context menu` works.
- [x] Enable/disable autocomplete.
- [x] Enable/disable `Show values from last use` .
2022-02-24 06:03:41 +08:00
* Select several files and folders and check PowerRename options:
2022-02-24 23:13:27 +08:00
- [x] Make Uppercase/Lowercase/Titlecase (could be selected only one at the time)
- [x] Exclude Folders/Files/Subfolder Items (could be selected several)
- [x] Item Name/Extension Only (one at the time)
- [x] Enumerate Items
- [x] Case Sensitive
- [x] Match All Occurrences. If checked, all matches of text in the `Search` field will be replaced with the Replace text. Otherwise, only the first instance of the `Search` for text in the file name will be replaced (left to right).
2022-02-24 06:03:41 +08:00
* Use regular expressions
2022-02-24 23:13:27 +08:00
- [x] Search with an expression (e.g. `(.*).png` )
- [x] Replace with an expression (e.g. `foo_$1.png` )
- [x] Replace using file creation date and time (e.g. `$hh-$mm-$ss-$fff` `$DD_$MMMM_$YYYY` )
- [x] Turn on `Use Boost library` and test with Perl Regular Expression Syntax (e.g. `(?<=t)est` )
2022-02-24 06:03:41 +08:00
* File list filters.
2022-02-24 23:13:27 +08:00
- [x] In the `preview` window uncheck some items to exclude them from renaming.
- [x] Click on the `Renamed` column to filter results.
- [x] Click on the `Original` column to cycle between checked and unchecked items.
2022-02-24 06:03:41 +08:00
## PowerToys Run
* Enable PT Run in settings and ensure that the hotkey brings up PT Run
- [ ] when PowerToys is running unelevated on start-up
- [ ] when PowerToys is running as admin on start-up
- [ ] when PowerToys is restarted as admin, by clicking the restart as admin button in settings.
* Check that each of the plugins is working:
- [ ] Program - launch a Win32 application
- [ ] Program - launch a Win32 application as admin
- [ ] Program - launch a packaged application
- [ ] Calculator - ensure a mathematical input returns a correct response and is copied on enter.
- [ ] Windows Search - open a file on the disk.
- [ ] Windows Search - find a file and copy file path.
- [ ] Windows Search - find a file and open containing folder.
- [ ] Shell - execute a command. Enter the action keyword `>` , followed by the query, both with and without space (e.g. `> ping localhost` ).
- [ ] Folder - Search and open a sub-folder on entering the path.
- [ ] Uri - launch a web page on entering the uri.
- [ ] Window walker - Switch focus to a running window.
- [ ] Service - start, stop, restart windows service. Enter the action keyword `!` to get the list of services.
- [ ] Registry - navigate through the registry tree and open registry editor. Enter the action keyword `:` to get the root keys.
- [ ] Registry - navigate through the registry tree and copy key path.
- [ ] System - test `lock` .
- [ ] System - test `empty recycle bin` .
- [ ] System - test `shutdown` .
- [ ] Disable PT Run and ensure that the hotkey doesn't bring up PT Run.
- [ ] Test tab navigation.
* Test Plugin Manager
- [ ] Enable/disable plugins and verify changes are picked up by PT Run
- [ ] Change `Direct activation phrase` and verify changes are picked up by PT Run
- [ ] Change `Include in global result` and verify changes picked up by PT Run
- [ ] Clear `Direct activation phrase` and uncheck `Include in global result` . Verify a warning message is shown.
- [ ] Disable all plugins and verify the warning message is shown.
## OOBE
* Quit PowerToys
* Delete %localappdata%\Microsoft\PowerToys
- [ ] Start PowerToys and verify OOBE opens
* Change version saved on `%localappdata%\Microsoft\PowerToys\last_version.txt`
- [ ] Start PowerToys and verify OOBE opens in the "What's New" page
* Visit each OOBE section and for each section:
- [ ] open the Settings for that module
- [ ] verify the Settings work as expected (toggle some controls on/off etc.)
- [ ] close the Settings
- [ ] if it's available, test the `Launch module name` button
* Close OOBE
- [ ] Open the Settings and from the General page open OOBE using the `Welcome to PowerToys` link
## Mouse Utils
Find My Mouse:
* Enable FindMyMouse. Then, without moving your mouse:
- [ ] Press Left Ctrl twice and verify the overlay appears.
- [ ] Press any other key and verify the overlay disappears.
- [ ] Press Left Ctrl twice and verify the overlay appears.
- [ ] Press a mouse button and verify the overlay disappears.
* Disable FindMyMouse. Verify the overlay no longer appears when you press Left Ctrl twice.
* Enable FindMyMouse. Then, without moving your mouse:
- [ ] Press Left Ctrl twice and verify the overlay appears.
* Enable the "Do not activate on game mode" option. Start playing a game that uses CG native full screen.
- [ ] Verify the overlay no longer appears when you press Left Ctrl twice.
* Disable the "Do not activate on game mode" option. Start playing the same game.
- [ ] Verify the overlay appears when you press Left Ctrl twice. (though it'll likely minimize the game)
* Test the different settings and verify they apply:
- [ ] Overlay opacity
- [ ] Background color
- [ ] Spotlight color
- [ ] Spotlight radius
- [ ] Spotlight initial zoom (1x vs 9x will show the difference)
- [ ] Animation duration
- [ ] Change activation method to shake and activate by shaking your mouse pointer
- [ ] Excluded apps
Mouse Highlighter:
* Enable Mouse Highlighter. Then:
- [ ] Press the activation shortcut and press left and right click somewhere, verifying the hightlights are applied.
- [ ] With left mouse button pressed, drag the mouse and verify the hightlight is dragged with the pointer.
- [ ] With right mouse button pressed, drag the mouse and verify the hightlight is dragged with the pointer.
- [ ] Press the activation shortcut again and verify no highlights appear when the mouse buttons are clicked.
- [ ] Disable Mouse Highlighter and verify that the module is not activated when you press the activation shortcut.
* Test the different settings and verify they apply:
- [ ] Change activation shortcut and test it
- [ ] Left button highlight color
- [ ] Right button highlight color
- [ ] Opacity
- [ ] Radius
- [ ] Fade delay
- [ ] Fade duration
Mouse Pointer Crosshairs:
* Enable Mouse Pointer Crosshairs. Then:
- [ ] Press the activation shortcut and verify the crosshairs appear, and that they follow the mouse around.
- [ ] Press the activation shortcut again and verify the crosshairs disappear.
- [ ] Disable Mouse Pointer Crosshairs and verify that the module is not activated when you press the activation shortcut.
* Test the different settings and verify they apply:
- [ ] Change activation shortcut and test it
- [ ] Crosshairs color
- [ ] Crosshairs opacity
- [ ] Crosshairs center radius
- [ ] Crosshairs thickness
- [ ] Crosshairs border color
- [ ] Crosshairs border size
## Awake
- [ ] Try out the features and see if they work, no list at this time.