2021-07-29 01:44:37 +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)
2021-07-29 17:08:45 +08:00
- [x] verify the settings are preserved and FancyZones configuration is still the same
2021-07-29 01:44:37 +08:00
## General Settings
**Admin mode:**
2021-07-29 17:55:25 +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
2021-07-29 01:44:37 +08:00
* if it's not on, turn on "Run at startup"
2021-07-29 17:55:25 +08:00
- [x] reboot the machine and verify PT runs as admin (it should not prompt the UAC dialog)
2021-07-29 01:44:37 +08:00
* turn Always run as admin" off
2021-07-29 17:55:25 +08:00
- [x] reboot the machine and verify it now runs as user
2021-07-29 01:44:37 +08:00
**Modules on/off:**
2021-07-29 17:55:25 +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
2021-07-29 01:44:37 +08:00
## Shortcut Guide
* Run PowerToys as user:
2021-07-29 18:20:11 +08:00
- [x] Verify `Win + Shift + /` opens the guide
- [x] Change the hotkey to a different shortcut (e.g. `Win + /` ) and verify it works
2021-07-29 01:44:37 +08:00
* Restore the `Win + Shift + /` hotkey.
2021-07-29 18:20:11 +08:00
- [x] Open the guide and close it pressing `Esc`
- [x] Open the guide and close it pressing and releasing the `Win` key
2021-07-29 01:44:37 +08:00
* With PowerToys running as a user, open an elevated app and keep it on foreground:
2021-07-29 18:20:11 +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
2021-07-29 01:44:37 +08:00
### OOBE
* Quit PowerToys
* Delete %localappdata%\Microsoft\PowerToys
2021-07-29 18:34:05 +08:00
- [x] Start PowerToys and verify OOBE opens
2021-07-29 01:44:37 +08:00
* Visit each OOBE section and for each section:
2021-07-29 18:34:05 +08:00
- [x] open the Settings for that module
- [x] verify the Settings work as expected (toggle some controls on/off etc.)
- [x] close the Settings
- [x] if it's available, test the `Launch module name` button
2021-07-29 01:44:37 +08:00
* Close OOBE
2021-07-29 18:34:05 +08:00
- [x] Open the Settings and from the General page open OOBE using the `Welcome to PowerToys` link
2021-07-29 01:44:37 +08:00
## PowerRename
2021-07-29 19:05:57 +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` .
2021-07-29 01:44:37 +08:00
* Select several files and folders and check PowerRename options:
2021-07-29 19:05:57 +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).
2021-07-29 01:44:37 +08:00
* Use regular expressions
2021-07-29 19:05:57 +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` )
2021-07-29 01:44:37 +08:00
* File list filters.
2021-07-29 19:05:57 +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.
2021-07-29 01:44:37 +08:00
## Image Resizer
2021-07-29 20:15:58 +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
2021-07-29 01:44:37 +08:00
2021-07-29 20:15:58 +08:00
- [x] Resize images with `Fill` option
- [x] Resize images with `Fit` option
- [x] Resize images with `Stretch` option
2021-07-29 01:44:37 +08:00
2021-07-29 20:15:58 +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
2021-07-29 01:44:37 +08:00
2021-07-29 20:15:58 +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
2021-07-29 01:44:37 +08:00