summaryrefslogtreecommitdiff
path: root/manual-tests/Launcher.txt
blob: e85e70bebaa38ed423c63a2e970fffcfe82b717c (plain)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 
Test Launcher Icon with Windows in multiple workspaces ------------------------------------------------------ This test shows how the launcher should draw when there are application windows in multiple workspaces. Setup: Actions: #. Start on a fresh login #. Run an application #. Run another instance (window) of this application and keep it on the initial workspace #. Run another instance (window) of this application and move it to another workspace #. Go back to the initial workspace Expected Result: The Launcher icon "pips" (indicators) should reflect the number of windows in the current workspace, so when showing the "initial" workspace the launcher icon should have 2 "pips", when moving to the second workspace (where there's only 1 window) the launcher application icon should have a left filled arrow. When moving to a workspace where there are no windows, the launcher icon should use an empty (non filled) arrow as left indicator (despite the number of opened windows). Test Launcher Spread with Windows in multiple workspaces -------------------------------------------------------- This test shows how the launcher should spread the windows when they are in multiple workspaces. Setup: Actions: #. Start on a fresh login #. Run an application #. Run another instance of this application and keep it on the initial workspace #. Run another instance of this application and move it no another workspaces #. Go back to the initial workspace and focus the application windows Expected Result: When in the current workspace there are multiple windows of the same application and one of them is focused, clicking on the launcher should spread only the windows that are in the current workspace. If in the current workspace there is just one window, clicking on the launcher icon should only focus it and nothing else (also with multiple clicks). When moving to a workspace where there are no window o the given application, clicking on its launcher icon should bring to focus the last focused window in the last used workspace. Test Alt+F1 KeyNavMode Rendering -------------------------------- This test shows that the launcher is redrawing correctly during Alt+F1 KeyNav mode. Setup: Actions: #. Press Alt+F1 to enter keynav mode. #. Keep pressing the down arrow key until the highlighted launcher icon is the bottom one (usually Trash). Expected Result: For every Down keypress, the next launcher icon down should be highlighted. Verify each icon gets highlighted from top to bottom. Test Alt+F1 KeyNavMode Shortcuts ----------------------------- This test shows that all the shortcuts work and also exits from keynav mode. Setup: Actions: #. Press Alt+F1 to enter keynav mode #. Press Super + a #. Press Esc #. Press Alt+F1 #. Press Alt + Tab #. Press Alt+F1 #. Press Ctrl + Alt + t Expected Result: The first shortcut opens the dash app lens, which it should open it and quit the nav mode. The second shortcut switches between applications. The last one will open a new terminal. This is to show all SUPER, ALT, and CTRL shortcuts work; while closing the keynav mode. Drag Icons to Trash ------------------- This test verifies that dragging icons to the trash removes them from the launcher, and that the animation is smooth. Setup: #. Ensure that you have multiple applications running or pinned to the launcher Actions: #. Move mouse pointer over an application or device icon (not BFB, Workspace switcher or trash) #. Hold mouse button down until icon attached to moue pointer (1 Second or so) #. With the mouse button held down, drag the icon over the trash icon. #. Release the mouse pointer. Expected Result: * The icon should be removed from the launcher. * The trash can icon should remain stationary during the entire operation. * The operation should NOT LOOK LIKE THIS: https://bugs.launchpad.net/unity/+bug/932365/+attachment/2739868/+files/out-2.ogv Drag file to Trash ------------------ This test verifies that dragging file icons from File Lens to trash moves the file to ~/Trash folder and removes it from File Lens results. Setup: #. Create a file via Nautilus > File > Create New Document. Actions: #. Open the Dash - File Lens #. Find the new file in File Lens results and drag it to the Trash icon on the launcher. #. Open the Dash - File Lens again. Expected Result: * The file is no longer listed by File Lens. * The file has been moved to ~/Trash folder. Dragging icons to reorder - initial position -------------------------------------------- This test is all position of the dragged image in relation to the mouse pointer. Setup: #. Ensure that you have multiple applications running or pinned to the launcher Actions: #. Move the mouse so it is over a launcher icon for an application #. Press and hold the mouse button Expected Result: * The icon should "detach" from the launcher and be centered on the mouse * There sould be a blank "space" in the launcher where the icon was * Any "pips" next to the icon aren't visible during the drag, and there are none showing in the blank space Dragging icons to reorder - over launcher ----------------------------------------- This test is all about the smoothness of the animation around the reordering of icons in the launcher. Setup: #. Ensure that you have multiple applications running or pinned to the launcher Actions: #. Move the mouse so it is over a launcher icon for an application #. Press and hold the mouse button #. Drag the icon up and down over the icons in the launcher Expected Result: * As the center of the dragged icon passes the mid-point of the next item above or below it, the icon being dragged over moves and is replaced by the blank "space". * The animation should be smooth * If the dragged icon is moved rapidly, multiple icons can be moving either upwards or downwards as the space is moved into place under the dragged icon * Dragging the second application icon (the third icon of the launcher) below the BFB or above the trash icon should be possible. * All the icons other than the BFB and trash icons can be reordered Dragging icons to reorder - away from launcher ---------------------------------------------- This test is about reordering the icons without the animation showing. Setup: #. Ensure that you have multiple applications running or pinned to the launcher Actions: #. Move the mouse so it is over a launcher icon for an application #. Press and hold the mouse button #. Drag the icon away from the launcher #. Drag the icon up and down where there is no overlap with the launcher. #. Release Expected Result: * As the icon is dragged away from the launcher, the "space" is closed up and replaced with a grey line. * As the icon is dragged up and down, the line moves between other launcher icons of the same type. * When released, the icon "flies" back into the launcher, a spaces opens for it, and the any pips for running apps show again. Dragging fixed icons does not reorder an icon above or below ------------------------------------------------------------ This test is about not reordering when dragging fixed icons. #. Move the mouse so it is over the BFB launcher icon #. Press and hold the mouse button #. Try to drag the icon to the right of the launcher. #. Move the mouse down at least to the height of the second launcher icon keeping the mouse pressed. #. Release Outcome: * No icon should be dragged. Dragged launcher icons out of the launcher are properly drawn ------------------------------------------------------------- This test ensures that the launcher icons out of the launcher are properly drawn Setup: #. Ensure that you have multiple applications running or pinned to the launcher Actions: #. Move the mouse so it is over a launcher icon for an application #. Press and hold the mouse button #. Drag the icon away from the launcher, in the middle of the display #. Don't move the mouse pointer for some (4-5) seconds, keeping the button pressed Expected Result: * The icon is always drawn, even when the mouse pointer does not move. Dragging icon while program is starting --------------------------------------- This test that when a program is executed from the launcher and the icon is getting dragged that the icon doesn't get frozen on the launcher. Setup: Actions: #. Click on Ubuntu Software Center from the launcher. #. While it's starting drag the Ubuntu Software Center icon. #. Drag the icon half over the launcher and desktop. #. Wait for the program to start. Expected Result: * The icon should go back to its correct position in the launcher. Drag USB Device Launcher to Eject ------------------- This test shows that the correct icon is shown in the OSD notification when a USB pen drive is ejected using drag and drop into the trash. Setup: #. Plug in a USB pen drive #. Wait for device icon to appear in the launcher Actions: #. Drag and drop it into the trash icon Expected Result: The usb pen drive will be "ejected" and an OSD-notification will appear. The icon in the notification is the same icon used for the launcher icon. Drag CD Device Launcher to Eject ------------------- This test shows that the correct icon is shown in the OSD notification when a CD is ejected using drag and drop into the trash. Setup: #. Insert a CD #. Wait for device icon to appear in the launcher Actions: #. Drag and drop it into the trash icon Expected Result: The cd will be"ejected and an OSD-notification will appear. The icon in the notification is the same icon used for the launcher icon. Launcher autoscroll wake-ups ---------------------------- This test makes sure that the timer controlling autoscroll animations does not keep running (at 50Hz) when it's not required to animate anything. This is LP: #917210. Setup: #. Ensure the screen is idle, with very little changing. #. Open a terminal and start a tool that can measure process wakeups per second. You can choose one of: - gnome-power-statistics (click on Processor) - powertop - eventstat Actions: #. Hover the mouse pointer over the top end of the Launcher. That's just above the Ubuntu icon. #. Hover the mouse pointer over the bottom end of the Launcher. That's over the bottom of the trash icon. #. Move the mouse pointer back to the centre of the screen and leave it there. #. Wait 30-60 seconds, leaving the screen idle before verifying the Outcome. Expected Result: The number of wakeups per second (events per second) reported for the compiz process should be much lower than 50. Test highlight BFB ------------------- This test shows that the BFB launcher icon highlights during key navigation. Setup: #. Start with a clear screen Actions: #. Press ALT+F1 Expected Result: The launcher key navigation starts and the BFB launcher icon highlights. It looks like `this`__: __https://launchpadlibrarian.net/85700200/bfb85.png Test launchers with multiple monitors ------------------------------------- This test checks if the launchers are shown in the correct monitor when using a multimonitor setup. Setup: Actions: 1. Open CCSM and and set the Experimental -> "Launcher Monitors" unity setting to "All Desktops" (check expected results 1.) 2. Open CCSM and and set the Experimental -> "Launcher Monitors" unity setting to "Primary Desktop" (check expected results 2.) Expected Result: 1. A launcher should be shown in each monitor. 2. Only the primary monitor should show a launcher. Changing the primary monitor from gnome-control-center -> Monitor should update the launcher position. Test Multiple Launchers with Windows in Multiple Monitors --------------------------------------------------------- This test shows how the launchers should draw their icons when there are application windows in multiple monitors. Setup: * Run CCSM and ensure that the unity option in "Experimental" -> "Launcher Monitors" is set to "All Desktops" Actions: * Open 2 Gedit windows on monitor 1, workspace 1. * Open 1 Gedit window on monitor 2, workspace 1. * Focus one of the two gedit windows on monitor 1. Expected Result: * Gedit launcher icon on monitor 1 must have: * Two pips on the left of the icon. * A filled-in arrow on the right of the icon. * Gedit launcher icon on monitor 2 must have: * One empty arrow on the left of the icon. * Nothing on the right of the icon. Test Multiple Launchers with Windows in Multiple Monitors and Workspaces ------------------------------------------------------------------------ This test shows how the launchers should draw their icons when there are application windows in multiple monitors spreaded in multiple workspaces. Setup: * Run CCSM and ensure that the unity option in "Experimental" -> "Launcher Monitors" is set to "All Desktops" Actions: * Open 1 Gedit window on monitor 1, workspace 1. * Open 2 Gedit windows on monitor 2, workspace 1. * Open 2 Gedit windows on monitor 1, workspace 2. * Open 1 Gedit window on monitor 2, workspace 3. * Move to workspace 1. * Focus the gedit window on monitor 1. * Assert the following: * Gedit launcher icon on monitor 1 must have: * A filled-in arrow on the left of the icon. * A filled-in arrow on the right of the icon. * Gedit launcher icon on monitor 2 must have: * Two pips on the left of the icon. * Nothing on the right of the icon. * Move to workspace 2. * Focus one of the two gedit windows on monitor 1. * Assert the following: * Gedit launcher icon on monitor 1 must have: * Two pips on the left of the icon. * A filled-in arrow on the right of the icon. * Gedit launcher icon on monitor 2 must have: * An empty arrow on the left of the icon. * Nothing on the right of the icon. * Move to workspace 3. * Focus the gedit window on monitor 2. * Assert the following: * Gedit launcher icon on monitor 1 must have: * An empty arrow on the left of the icon. * Nothing on the right of the icon. * Gedit launcher icon on monitor 2 must have: * A filled-in arrow on the left of the icon. * A filled-in arrow on the right of the icon. * Move to workspace 4. * Assert the following: * Gedit launcher icon on monitor 1 must have: * An empty arrow on the left of the icon. * Nothing on the right of the icon. * Gedit launcher icon on monitor 2 must have: * An empty arrow on the left of the icon. * Nothing on the right of the icon. Expected Result: All assertions from above hold. Test Single Launcher with Windows in Multiple Monitors ------------------------------------------------------ This test shows how the launcher should draw its icons when there are application windows in multiple monitors. Setup: * Run CCSM and ensure that the unity option in "Experimental" -> "Launcher Monitors" is set to "Primary Desktop" Actions: * Open 2 Gedit windows on monitor 1, workspace 1. * Open 1 Gedit window on monitor 2, workspace 1. * Focus one of the two gedit windows on monitor 1. Expected Result: * The launcher is placed only on primary monitor * Gedit launcher icon must have: * Three pips on the left of the icon. * A filled-in arrow on the right of the icon. Test Single Launcher with Windows in Multiple Monitors and Workspaces --------------------------------------------------------------------- This test shows how the launcher should draw its icons when there are application windows in multiple monitors spreaded in multiple workspaces. Setup: * Run CCSM and ensure that the unity option in "Experimental" -> "Launcher Monitors" is set to "Primary Desktop" Actions: * Open 1 Gedit window on monitor 1, workspace 1. * Open 2 Gedit windows on monitor 2, workspace 1. * Open 2 Gedit windows on monitor 1, workspace 2. * Open 1 Gedit window on monitor 2, workspace 3. * Move to workspace 1. * Focus the gedit window on monitor 1. * Assert the following: * The launcher is shown only on primary monitor * Gedit launcher icon must have: * Three pips on the left of the icon. * A filled-in arrow on the right of the icon. * Move to workspace 2. * Focus one of the two gedit windows on monitor 1. * Assert the following: * Gedit launcher icon on monitor 1 must have: * Two pips on the left of the icon. * A filled-in arrow on the right of the icon. * Move to workspace 3. * Focus the gedit window on monitor 2. * Assert the following: * Gedit launcher icon on monitor 2 must have: * A filled-in arrow on the left of the icon. * A filled-in arrow on the right of the icon. * Move to workspace 4. * Assert the following: * Gedit launcher icon on monitor 1 must have: * An empty arrow on the left of the icon. * Nothing on the right of the icon. Expected Result: All assertions from above hold. Panel appearance with overlays ------------------------------ Setup: Have a secondary monitor plugged in and working. Have the launchers on each monitor Make sure the launcher setting is to never hide. Actions: #. Press <super> to bring up the dash #. Press <super> to close the dash Expected Result: The launchers on each monitor have saturated icons (normal looking, not the desaturated look that there is while the dash is open). Test number overlays while shortcut help is active ------------------------------ Setup: have a launcher with a few icons in it Actions: * Hold down Super until the "Keyboard Shortcuts" screen appears * Assert: The numbers [1-9] should be displayed overlaid on the icons. "Keyboard Shortcut" menu should appear as well. * Mouse over an icon in the launcher * Hold down Super until the "Keyboard Shortcuts" screen appears * Assert: The numbers [1-9] should be displayed overlaid on the icons. "Keyboard Shortcut" menu should appear as well. Expected Result: Assertions from above hold. Drag file to launcher icons --------------------------- Setup: #. Add the Firefox icon to the launcher. #. Create an html file on the desktop. #. Create an empty folder on the desktop. Actions: * Drag the html file. * Drop it into the Firefox icon. * Assert: The Firefox icon should be highlighted during the drag&drop. Firefox should open the html file. * Drag the new folder. * Drop it into the Firefox icon. * Assert: The Firefox icon should *not* be highlighted during the drag&drop. Firefox should open the folder in a new Firefox window. Expected Result: Assertions from above hold. Test Launcher with Chromium Web apps ------------------------------------ This tests shows the integration of unity with the Chromium Web Apps Setup: * Open Chromium and go to a website, say ubuntu.com * Go to the menu "File" -> "Create Application Shortcuts..." * Select the checkbox "Applications Menu" (you can deselect the "Desktop" one) * A new window is opened, and the launcher will continue matching it like a chromium application. * Close the chromium window. Actions: * Open the dash and search for "chrom" * An application called "Home | Ubuntu" should be shown * Launch it * Assert: The launcher will show an icon for the "Home | Ubuntu" application * Open a standard chromium window * Assert: The new chromium window will be associated to the standard chromium application icon. * Assert: Clicking the "Home | Ubuntu" will activate its window, while clicking in the chromium icon will activate a chromium window. Expected Result: Assertions from above hold. Test Launcher raises focused non-top windows -------------------------------------------- This tests shows how the focused windows should be raised to the top of the stack, when another non-active window is over them. Setup: Actions: * Open a terminal Window * Open The GIMP * In GIMP load an image, say /usr/share/backgrounds/warty-final-ubuntu.png * From the terminal window run the command "gimp foo-image.png" * Assert: A gimp dialog will be raised (so the terminal window is below it), but not focused * Assert: Terminal launcher icon must have a filled-in arrow on the right of the icon * Click on the launcher terminal icon * Assert: Terminal window will be raised to the top of the stack (over the GIMP window) Expected Result: Assertions from above hold. Test killing bamfdaemon does not duplicate icons in launcher ------------------------------------------------------------ This test shows that restarting/killing the BAMF Daemon does not result in duplicate icons in the Launcher. Setup: Actions: * Open Calculator * Open System Settings * Open xclock (Alt-F2, xclock, enter) * Open a terminal and kill the bamf daemon (command: pkill bamfdaemon) * (wait for bamfdaemon to be killed) * Restart bamfdaemon (Open another Terminal, this will kick bamfdaemon back into life) * (You can ensure that bamfdaemon has been restarted by running in the terminal: ps aux | grep bamfdaemon. You're looking for: /usr/lib/bamf/bamfdaemon) Expected Result: * There are no icons doubled up in the Launcher * All icons are present in the Launcher Drag and Drop doesn't freeze Unity ---------------------------------- Setup: Actions: #. Open Firefox #. Go to http://launchpad.net/unity #. Drag around the Unity icon image shown in the top-left corner of the browser window. #. Drop it wherever you want. Expected Result: Unity must not freeze during the drag and drop. Test launcher unfolds valid drop icons during dnd ------------------------------------------------------------ This test makes sure that Unity launcher unfolds valid drop icons during drag and drop. Setup: * Add icons to the laucnher so that some of them in the bottom are folded. * Add Nautilus icon too, making sure it is folded. Actions: * Show Desktop * Drag a folder icon Expected Result: * All the valid drop icons should unfold during the drag and drop. Test launcher autoscrolls when holding an icon ---------------------------------------------- Setup: * Add icons to the laucnher so that some of them in the bottom are folded. Actions: * Drag a launcher icon of the top side of the launcher. Don't release the mouse. * Move the mouse at the bottom of the launcher. Expected Result: * The launcher should autoscroll so you can reach the trash icon. No flashing tooltips when peforming the accordion effect. ---------------------------------------------------- Setup: * Make sure the launcher setting is to never hide. * Add icons to the launcher so that some of them in the bottom are folded. Actions: * Quickly move the mouse pointer to the bottom-left corner. * Quickly move the mouse pointer outside the launcher area. Expected Result: * No icon flickers near the top panel. * See https://bugs.launchpad.net/unity/+bug/980942/+attachment/3059914/+files/launcher-accordion-effect-tooltip-bug.ogv. Stop SD card by dragging it's icon to trash --------------------------------------------------- Setup: * Have an SD Card reader and an SD Card Actions: * Insert the SD card into the SD card reader. * Wait for the SD card to mount. * Drag and drop the SD card icon into the trash. Expected result: * The SD card launcher icon appears in the launcher after the SD card is mounted * After the icon is dragged into the trash, the SD card is "stopped" * A notification appears, stating that the SD card has been stopped. No flickering when resizing the launcher ----------------------------------------- Actions: * Open gedit. * Maximize it. Make sure it remains maximized during the test. * Open Appearance panel in System Settings. * Change Launcher Icon Size. Expected Results: * The gedit window must not flicker behind the launcher. Custom background color works ----------------------------- This test ensures that the custom background color (set via ccsm) works correctly. Setup: #. Ensure that ccsm is installed (package compizconfig-settings-manager) Actions: #. Open ccsm #. Click on Ubuntu Unity Plugin #. Choose Experimental tab, click on Background Color, set Color name to #000000 and Opacity to 180 Expected Result: The background color of the Launcher is black, and the icons are still visible. The Launcher must stay black when Dash or HUD are opened, and the color must be persistent between sessions (logout/login).