mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-01 01:49:06 +08:00
Added tests for Workspaces
This commit is contained in:
parent
b12fa3f007
commit
90e5eb5ac5
@ -843,3 +843,65 @@ Mouse Jump:
|
||||
- [ ] Open Advanced Paste window with hotkey, click Clipboard history, and click any entry (but first). Observe that entry is put on top of clipboard history. Check OS clipboard history (Win+V), and confirm that the same entry is on top of the clipboard.
|
||||
- [ ] Open Settings and Disable clipboard history. Open Advanced Paste window with hotkey and observe that Clipboard history button is disabled.
|
||||
* Disable Advanced Paste, try different Advanced Paste hotkeys and confirm that it's disabled and nothing happens.
|
||||
|
||||
## Workspaces
|
||||
* Settings
|
||||
- [ ] Launch the Editor by clicking the button on the settings page.
|
||||
- [ ] Launch the Editor from quick access.
|
||||
- [ ] Launch the Editor by the Activation shortcut.
|
||||
- [ ] Disable the module and and verify it won't launch by the shortcut.
|
||||
|
||||
* Snapshot tool: try with elevated and non-elevated PT
|
||||
* Open non-packaged apps, e.g., VisualStudio, VisualStudioCode.
|
||||
* Open packaged apps, e.g., Notepad, Settings.
|
||||
* Run any app as an administrator.
|
||||
* Minimize any app.
|
||||
* Click `Create Workspace`.
|
||||
* Open any other window.
|
||||
* Click `Capture`
|
||||
- [ ] Verify Editor shows all opened windows (the elevated window will be captured if PT is also elevated).
|
||||
- [ ] Verify windows are in the correct positions.
|
||||
- [ ] Verify elevated app has the `Admin` box checked (if captured).
|
||||
|
||||
* Editor
|
||||
- [ ] Verify that the new Workspace appears in the list after capturing.
|
||||
- [ ] Verify that the new Workspace doesn't appear after canceling the Capture.
|
||||
- [ ] Verify `Search` filters Workspaces (by workspace name or app name).
|
||||
- [ ] Verify `SortBy` works.
|
||||
- [ ] Verify `SortBy` keeps its value when you close and open the editor again.
|
||||
- [ ] Verify `Remove` removes the Workspace from the list.
|
||||
- [ ] Verify `Edit` opens the Workspace editing page.
|
||||
- [ ] Verify clicking at the Workspace opens the Workspace editing page.
|
||||
|
||||
* Editing page
|
||||
- [ ] `Remove` an app and verify it disappeared on the preview.
|
||||
- [ ] `Remove` and `Add back` an app, verify it's returned back to the preview.
|
||||
- [ ] Set an app minimized, check the preview.
|
||||
- [ ] Set an app maximized, check the preview.
|
||||
- [ ] Check `Launch as admin` for the app where it's available.
|
||||
- [ ] Add CLI args, e.g. path to the PowerToys.sln file for VisualStudio.
|
||||
- [ ] Manually change the position for the app, check the preview.
|
||||
- [ ] Change the Workspace name.
|
||||
- [ ] Verify `Save` and `Cancel` work as expected.
|
||||
- [ ] Change anything in the project, click at the `Workspaces` on the top of the page, and verify you returned to the main page without saving any changes. - [ ] Check `Create desktop shortcut`, save the project, verify the shortcut appears on the desktop.
|
||||
- [ ] Verify that `Create desktop shortcut` is checked when the shortcut is on the desktop and unchecked when there is no shortcut on the desktop.
|
||||
- [ ] Click `Launch and Edit`, wait for the apps to launch, click `Capture`, verify opened apps are added to the project.
|
||||
|
||||
* Launcher
|
||||
- [ ] Click `Launch` in the editor, verify the Workspace apps launching.
|
||||
- [ ] Launch Workspace by a shortcut, verify the Workspace apps launching.
|
||||
- [ ] Verify a window with launching progress is shown while apps are launching and presents the correct launching state (launching, launched, not launched) for every app.
|
||||
- [ ] Click `Cancel launch`, verify launching is stopped at the current state (opened apps will stay opened), and the window is closed.
|
||||
- [ ] Click `Dismiss` and verify apps keep launching, but the LauncherUI window is closed.
|
||||
|
||||
* To verify that the launcher works correctly with different apps, try to capture and launch:
|
||||
- [ ] Non-packaged app, e.g., VisualStudio code
|
||||
- [ ] As admin
|
||||
- [ ] With CLI args
|
||||
- [ ] Packaged app, e.g. Terminal
|
||||
- [ ] As admin
|
||||
- [ ] With CLI args
|
||||
|
||||
* Try to launch the Workspace with a different setup
|
||||
- [ ] Create a Workspace with one monitor connected, connect the second monitor, launch the Workspace, verify apps are opened on the first one, as captured.
|
||||
- [ ] Create a Workspace with two monitors connected, disconnect a monitor, verify apps are opened on the remaining one.
|
||||
|
Loading…
Reference in New Issue
Block a user