# Testing This document provides a guideline for testing and verifying the expected behaviors of the project. When a patch is ready for testing, the checklists may be copied and marked as they are proven to be working. ## Logs To begin watching logs, open a terminal with the following command: ``` journalctl -o cat -n 0 -f "$(which gnome-shell)" | grep -v warning ``` Note that because the logs are from GNOME Shell, there will be messages from all installed extensions, and GNOME Shell itself. Pop Shell is fairly chatty though, so the majority of the logs should be from Pop Shell. Pop Shell logs are usually prepended with `pop-shell:`, but sometimes GNOME has internal errors and warnings surrounding those logs that could be useful for pointing to an issue that we can resolve in Pop Shell. ## Checklists Tasks for a tester to verify when approving a patch. Use complex window layouts and at least two displays. Turn on active hint during testing. ## With tiling enabled ### Tiling - [x] Super direction keys changes focus in the correct direction - [x] Windows moved with the keyboard tile into place - [x] Windows moved with the mouse tile into place - [x] Windows swap with the keyboard (test with different size windows) - [x] Windows can be resized with the keyboard (Test resizing four windows above, below, right, and left to ensure shortcut consistency) - [x] Windows can be resized with the mouse - [x] Minimizing a window detaches it from the tree and re-tiles remaining windows - [x] Unminimizing a window re-tiles the window - [x] Maximizing with the keyboard (`Super` `M`) covers tiled windows - [x] Unmaximizing with keyboard (`Super` `M`) re-tiles into place - [x] Maximizing with the mouse covers tiled windows - [x] Unmaximizing with mouse re-tiles into place - [x] Full-screening removes the active hint and full-screens on one display - [x] Unfull-screening adds the active hint and re-tiles into place - [x] Maximizing a YouTube video fills the screen and unmaximizing retiles the browser in place - [x] VIM shortcuts work as direction keys - [x] `Super` `O` changes window orientation - [x] `Super` `G` floats and then re-tiles a window - [x] Float a window with `Super` `G`. It should be movable and resizeable in window management mode with keyboard keys - [x] `Super` `Q` Closes a window - [x] Turn off auto-tiling. New windows launch floating. - [x] Turn on auto-tiling. Windows automatically tile. - [x] Disabling and enabling auto-tiling correctly handles minimized, maximized, fullscreen, floating, and non-floating windows (This test needs a better definition, steps, or to be separated out.) ### Stacking - [x] Windows can be moved into a stack. - [x] Windows can be moved out of a stack. - [x] Windows inside and outside of a stack can be swapped multiple times and in both directions. - [x] Moving the last window out of a stack works as expected. - [x] Stacks can be resized with the keyboard. - [x] Stacks can be resized with the mouse. - [x] Lock and unlock the screen-- stacks should still exist and windows should not have moved. - [x] Full-screen an application within the stack, then quit the application-- the remaining tabs should be visible. ### Workspaces - [x] Windows can be moved to another workspace with the keyboard - [x] Windows can be moved to another workspace with the mouse - [x] Windows can be moved to workspaces between existing workspaces - [x] Moving windows to another workspace re-tiled the previous and new workspace - [x] Active hint is present on the new workspace and once the window is returned to its previous workspace - [x] Floating windows move across workspaces - [x] Remove windows from the 2nd worspace in a 3 workspace setup. The 3rd workspace becomes the 2nd workspace, and tiling is unaffected by the move. ### Displays - [x] Windows move across displays in adjustment mode with direction keys - [x] Windows move across displays with the mouse - [x] Changing the primary display moves the top bar. Window heights adjust on all monitors for the new position. - [x] Unplug a display - windows from the display retile on a new workspace on the remaining display - [x] Plug an additional display into a laptop - windows and workspaces don't changes - [x] NOTE: Add vertical monitor layout test ### Launcher - [x] All windows on all workspaces appear on launch - [x] Choosing an app on another workspace moves workspaces and focus to that app - [x] Launching an application works - [x] Typing text and then removing it will re-show those windows - [x] Search works for applications and windows - [x] Search works for GNOME settings panels - [x] Search for "Extensions". There should be only one entry. - [x] The overlay hint correctly highlights the selected window - [x] Open windows are sorted above applications (e.g. "web browser") - [x] t: executes a command in a terminal - [x] : executes a command in sh - [x] = calculates an equation - [x] Search results are as expected: - `cal` returns Calendar and Calculator before Color - `pops` returns Popsicle first - `shop` returns the Pop!_Shop first ### Window Titles - [x] Disabling window titles using global (Pop Shell) option works for Shell Shortcuts, LibreOffice, etc. - [x] Disabling window titles in Firefox works (Check debian and flatpak packages) ### Floating Exceptions - [x] Add a window to floating exceptions-- it should float immediately. - [x] Close and re-open the window-- it should float when opened. - [x] Add an app to floating exceptions-- it should float immediately. - [x] Close and re-open the app-- it should float when opened. ## With Tiling Disabled ### Tiling - [x] Super direction keys changes focus in the correct direction - [x] Windows can be moved with the keyboard - [x] Windows can be moved with the mouse - [x] Windows swap with the keyboard (test with different size windows) - [x] Windows can be resized with the keyboard - [x] Windows can be resized with the mouse - [x] Windows can be half-tiled left and right with `Ctrl``Super``left`/`right` ### Displays - [x] Windows move across displays in adjustment mode with directions keys - [x] Windows move across displays with the mouse ### Miscellaneous - [x] Close all windows-- no icons should be active in the GNOME launcher. - [x] Open a window, enable tiling, stack the window, move to a different workspace, and disable tiling. The window should not become visible on the empty workspace. - [x] With tiling still disabled, minimize the single window. The active hint should go away. - [x] Maximize a window, then open another app with the Activities overview. The newly-opened app should be visible and focused. - [x] Maximize a window, then open another app with the launcher. The newly-opened app should be visible and focused.