UnityTests

Manual Unity 5.0 tests

Rationale

This is the temporary manual unity 5.0 tests before the tool for having them is done for community participation.

Those tests requires that you have the default settings enabled and default theme.

Unity2D specific differences are commented like this: [2D: difference]

Tests

Unity

  • Ensure Unity starts and is displayed

-> you should see, on a blank desktop, a panel, (top bar), a launcher (left bar) with buttons.


Panel

  • click on the desktop on a blank workspace

-> you should see "Ubuntu Desktop" (or any localized string) in the panel (top bar)

  • Put the mouse over the panel

-> you should see the "Ubuntu Desktop" label fading out [2D: no fade, it vanishes] and some menu titles appearing

  • click on one item

-> you should see a menu appearing

  • click outside (on the desktop) of the menu

-> the menu should close, and it the menu titles should disappear


  • reopen the previous menu by clicking on "File"
  • over other menu items, like "Edit, Views…"

-> the different menus should open without having any additional click to do


  • reopen the previous menu
  • use the keyboard keys arrows to navigate between menus

-> the different menus should open and be keyboard navigable


  • reopen the previous menu
  • without moving the mouse, left-click again

-> the menu should close, but the menu titles are still displayed.


  • Open an application in the launcher (not maximized)

-> The title in the bar should match the newly active application

  • Hover the panel

-> You should see the application name and the menu titles.


  • Open an application in the launcher
  • Maximize it
  • Hover the panel

-> the title should change to "close;minimize;restore buttons"

  • Click on restore

-> the application window should restore

  • Maximize it again
  • Click on close

-> the application should close


  • Open an application in the launcher
  • Maximize it
  • Double-click on the unity panel

-> the window should restore


  • Open an application in the launcher
  • Resize it so that it's larger than 3/4 of the screen
  • Close it
  • Open it again from the launcher

-> the window should be automatically maximized [2D: fail]


  • You should see on the top right some indicators, ordered by (left to right):
    • Messaging menu (little enveloppe)
    • Battery indicator (battery icon, either charging or plugged)
    • Bluetooth indicator
    • Network indicator (either a unplug icon, or wifi icon
    • sound menu
    • time indicator (showing the current hour)
    • your name or nickname (/!\ Not showing in the live CD)
    • the system indicator


  • Click on the messaging menu, and hover on all the other indicators

-> you should see a menu attached to each indicator


  • Have a window which export its menu to the menubar
  • Press F10

-> the application menu titles should appear and the first menu should be opened


  • Have a window which export its menu to the menubar
  • Use a menu shortcut like alt + F

-> the application menu titles should appear and the corresponding application menu should opened


  • Launch gtk-recordmydesktop (or any application having an appindicator)

-> ensure an application indicator is appearing in the panel

  • Click on it

-> ensure a menu is appearing

  • Click on "close" or "quit"

-> the application should close


  • Launch skype or mumble

-> ensure an application indicator is appearing in the panel

  • Click on it

-> ensure a menu is appearing

  • Click on "close" or "quit"

-> the application should close


  • Have a maximized application and a restored one in the same workspace
  • Focus the restored application and hover the panel

-> ensure that the title bar, and menu displaying is the current focused application one (there is no control button in the panel as well)

  • Click on an empty space of the panel

-> the maximized application should get the focus [2D: known fail, lp:731761]


Launcher

  • With your mouse hover the launcher icon

-> a tooltip should immediately appear having the application of icon function name.


  • click on a launcher icon for an application which is not running

-> the launcher icon should be flashing while the application is opening -> You should see an arrow on the left of the launcher icon displaying there is an instance opened -> You should see an arrow on the right of the launcher icon showing that it's the current application


  • Open an application and either maximize it or put it under the launcher

-> the launcher should disappear

  • put the mouse at the x=0 position for a while

-> the launcher should reappear

  • put the mouse outside of the launcher

-> the launcher should disappear

  • Restore the maximized window and move it outside of the launcher scope

-> the launcher should reappear


  • Have a maximized application opened and launcher hidden
  • click on an application launcher icon and don't move the mouse

-> the launcher should disappear [2D: fail, lp:898238]


  • Have a maximized application opened and launcher hidden
  • click on an application launcher icon and immediately move the mouse to another launcher icon

-> the launcher should not disappear


  • Have a maximized application opened and launcher hidden
  • put the mouse under the launcher area
  • press super and keep it pressed

-> after a while, some numbers (0-9) should appear in the first launcher icons.

  • press one of the number (without any modifier) for a non started application

-> the application should start


  • Have a firefox maximized application opened and launcher hidden
  • press super and keep it pressed

-> after a while, some numbers (0-9) should appear in the first launcher icons.

  • press the firefox corresponding number (with shift pressed)

-> a new firefox window should appear


  • Have a maximized application opened and launcher hidden
  • put the mouse under the launcher area
  • press super and keep it pressed
  • Once the launcher here, release super

-> the launcher should disappear [2D: fail, lp:898239]


  • Have the launcher hidden and another application opened
  • Click on the minimize button on the title bar on this application

-> the application should be minimized, the launcher should show the application icon for less than a second and then hide again. [2D: fail, lp:898242]


  • APPLICATION REQUESTING ATTENTION: TEST CASE NEEDED


  • Have a maximized application opened and launcher hidden
  • put the mouse under the launcher area
  • press super and keep it pressed

-> the launcher should appear -> after a while, some numbers (0-9) should appear in the first launcher icons.


  • right-click on the launcher icon for which the application is running

-> a quicklist is displayed, showing at least the application name, "keep in launcher" and "quit".

  • click on quit

-> the application should close


  • Have two different applications opened
  • click on the launcher icon corresponding to the application without the focus

-> this application should get the focus


  • Open firefox
  • right-click on the launcher icon for firefox

-> you should see an specific entry for firefox "open a new window"

  • click on it

-> a second firefox window should appear -> two arrow should now be on the left of the launcher icon

  • open a new firefox window

-> a third arrow should now be on the left of the launcher icon

  • open a new firefox window

-> there should still be a third arrow should now be on the left of the launcher icon


  • in the previous configuration, with firefox having the focus and more than one firefox window, click on the firefox launcher icon

-> you should see the firefox window being exposed and the launcher should still be visible

  • click on one of them

-> this one should be focused


  • in the previous configuration, with firefox having the focus and more than one firefox window, minimize one of the firefox window. Ensure that one firefox window still have the focus
  • click on the firefox launcher icon

-> all firefox windows (even the minimized ones) should be exposed

  • click on the minimized window

-> this window should be restored and visible


  • press super
  • search for an installed application not in the launcher
  • click on it

-> the application should start and appear in the launcher

  • left-click on the launcher icon

-> a quicklist should appear

  • click on "Keep in launcher"
  • close the application

-> the launcher icon should stay in the launcher


  • right-click on a not started application

-> a quicklist should appear, with "Keep in launcher" ticked

  • click on this item

-> the launcher icon should disappear


  • click on a launcher icon, keep the left button pressed for 0.5s

-> you should see the icon decoralate from the launcher

  • drag it to another position and release the button

-> you should see the icons changing positions


  • change a launcher icon position and remove or add an icon to the launcher (see previous tests)
  • restart unity TODO: a way to click on a button to restart unity

-> you should get the same launcher icons at the same position


  • Open a KDE application like KDE
  • Pin it in the launcher (Keep in launcher)
  • restart unity: TODO: a way to click on a button to restart unity

-> you should see it after restart


  • Open a bunch of applications on your desktop so that you have more than what the launcher can show

-> the launcher show fold the icons

  • point with your mouse to a folded launcher icon

-> the launcher show unfold the icons and your cursor should be on the one you pointed [2D: fail]


  • in the previous configuration, put your mouse at the very bottom of the launcher

-> the launcher should scroll until showing the latest icon

  • put your mouse again at the very top of the launcher

-> the launcher should scroll until the first icon


  • press alt + f1

-> you should see the first icon highlighted

  • press down and up keyboard arrows key

-> the focused application should change

  • press escape

-> no launcher icon should be focused


  • press alt + f1

-> you should see the first icon highlighted

  • press down and up keyboard arrows key

-> the focused application should change

  • press alt + f1

-> no launcher icon should be focused


  • Have a maximized application
  • press alt + f1

-> the launcher should appear

  • press escape

-> the launcher should disappear


  • press alt + f1
  • focus an application which is not opened, press enter

-> the application should be started


  • press alt + f1
  • press down until you focus an opened application
  • use the right key

-> the quicklist for the application should be displayed

  • press down until highlighting "quit"
  • press enter

-> the application should close and the launcher should lost the focus


  • ensure you have a firefox window opened
  • press alt + f1
  • press down until you focus firefox
  • press space

-> a new firefox window should open [2D: fail, lp:898244]


Warning /!\ Read the whole test case before starting

  • click on the workspace switcher launcher icon

-> all workspaces should be visible with windows exposed on all workspaces

  • click on a window application and move to another workspace [2D: fail]

-> you should see the window set in the destination workspace. Also, the orange border showing the current workspace should change. [2D: fail]

  • double click on one workspace which isn't the current one

-> the chosen workspace should be zoomed in and become the current one.


  • from the previous test, you should have at least one application not on the current workspace. This one should have only one window for that application

    -> for that launcher icon, the left arrow should be greyed [2D: fail]


  • from the previous test, you should have at least one application not on the current workspace. This one should have only one window for that application
  • click on the corresponding launcher icon

-> you should be moved to the workspace containing that window and focusing the application


  • from the previous test, you should have at least one application not on the current workspace. This one should have multiples windows (eventually on different workspaces) for that application
  • click on the corresponding launcher icon

-> you should see all windows from all workspaces exposed


  • delete a file with del

-> the trash icon should show a "full trash" icon

  • click on the trash

-> nautilus should open with in the trash directory, restore every files -> the trash icon should show an "empty trash" icon


  • delete a copied file (it will be removed) with del
  • right click on the trash and select "Empty it"
  • on the displayed dialog, select "empty the trash"

-> the trash should then be emptied


  • start skype
  • minimize the main skype window

-> check that there is still a launcher icon shown

  • click on the skype launcher icon

-> the previous skype instance should be raised again


  • Launch this program: [2D: fail as not compatible, FIXME]

public int main (string[] args)
{
  /* Pretend to be gnome-terminal for the sake of the example */
  var l = Unity.LauncherEntry.get_for_desktop_id ("gnome-terminal.desktop");

  /* Set progress to 42% done */
  l.progress = 0.42;
  l.progress_visible = true;

  /* Set count to 42 */
  l.count = 42;
  l.count_visible = true;

  /* We also want a quicklist */
  var ql = new Dbusmenu.Menuitem ();
  var item1 = new Dbusmenu.Menuitem ();
  item1.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Item 1");
  var item2 = new Dbusmenu.Menuitem ();
  item2.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Item 2");
  ql.child_append (item1);
  ql.child_append (item2);
  l.quicklist = ql;

  new MainLoop().run();
  return 0;
}

-> You should see: - a launcher icon for gnome-terminal - a count on it labeled (42) - a progress bar showing a progress of 42%

  • right click:

-> you should see a quicklist containing "Item 1" and "Item 2"


Dash

  • Press super

-> the dash should be shown, you should see icons for each lenses at the bottom. You should see a "Search" label in the search entry. The launcher icon are

  • Press ctrl + tab to navigate between lenses

-> each new lenses should get the focus and the view is refreshed

  • press super

-> the dash should close [2D: fail, lp:891565 ]


  • Press super

-> all launcher icons should be darkened. [2D: fail, lp:898247]

  • Hover the launcher with your mouse

-> the launcher icons should be lightened up.

  • Click on a not running applications

-> the dash should close and the new application executed


  • Click on the first item of the launcher
  • Press the maximize (or restore if dash is already fullscreen) to toggle the dash size

-> the dash size should change

  • Click on the minimize button

-> nothing should happen

  • Click on the close button

-> the dash should close


Prereq: firefox installed

  • Click on the first item of the launcher
  • Enter "firefox"

-> a spinning icon should appear shortly in the text search area and a firefox match should be there [2D: fail, lp:898262]

  • Hover over "firefox"

-> you should see a hovering hint on the firefox icon [2D: fail]

  • click on the firefox entry

-> firefox should be launched


  • Press super
  • Enter "firefox"
  • press enter

-> firefox should be launched


prereq: you should have the files and applications lenses installed

  • Press super
  • Enter "f"

-> you should have multiple result in different categories (files, applications at least, maybe music)

  • click on the cross next to "f", in the textentry

-> the "f" search should be canceled, you should have back a generic "Search" entry and should see the default elements

  • click outside the dash (if you the dash is not fullscreen, otherwise, press super)

-> the dash should close


  • Press super
  • Make a search

-> some results should appear

  • Click on backspace until the search is empty

-> the search should be canceled, you should have back a generic "Search" entry and should see the default elements


  • Press super
  • click on each lens icons at the bottom

-> each new lenses should get the focus and the view is refreshed


Prerequ: have the application, music, and file lens [2D: fail, lp:834078]

  • Press super + A

-> the dash should open in the application lens

  • Press super + F

-> the dash should open in the file lens

  • Press super + M

-> the dahs should open in the music lens


Prereq: having the application lens installed

  • Press super
  • click on the application lens icon

-> the search entry should show "search applications" and you should have three categories: - most used apps - installed - apps available for download


Prereq: having the application lens installed

  • Press super
  • click on the application lens icon
  • Make a search

-> it should impact the result on each category

  • Open the filter
  • Change the filters for each of filter type

-> it should change the result, at least on one category


  • Press super
  • click on the application lens icon
  • Drag an item which is not in the launcher to the launcher

-> All launcher icons should become unsaturated and an empty place should appear in the launcher [2D: fail, lp:898247]

  • Drop the item in the launcher

-> a new launcher icon should appear and stick in the launcher


Prereq: having the file lens installed

  • Press super
  • click on the file lens icon

-> the search entry should show "search files" and you should have three categories: - recent (if you at least opened a file on your computer) - download (if you have file in ~/Download) - folder


Prereq: having the file lens installed

  • Press super
  • click on the file lens icon
  • Make a search

-> it should impact the result on each category

  • Open the filter
  • Change the filters for each of filter type

-> it should change the result, at least on one category


Prereq: having the music lens installed

  • Press super
  • click on the music lens icon

-> the search entry should show "search music" and you should have two categories: - tracks - albums


Prereq: having the music lens installed

  • Press super
  • click on the file lens icon
  • Make a search

-> it should impact the result on each category. A search for a popular group like "u2" should show some online result in an additional category

  • Open the filter
  • Change the filters for each of filter type

-> it should change the result, at least on one category


  • Press super
  • Go to a lens having multiple results and a category with "see xx more results"
  • next to a category showing "see xx more results", click on this label

-> the result content should expand and show more content

  • use the mouse scrollwheel

-> this should scroll the whole windows content

  • click on the category title as well

-> the results should collapse and show less results


  • Press super
  • Press ctrl + tab

-> a new lens should be shown [2D: fail, lp:891648]

  • If you press the down key on your keyboard once, the category should have the focus, if you press it again, you should go to the result of this category. If you press down again, it should go to next category.
  • The focus change on result (not category) should show the same hovering hint than the one with the mouse
  • If you press left and right, the focus should go left or right
  • If you press left and then enter once the focus is in a category title containing "see xx more results", the content of this category should expand (and using the key arrays should enable you to scroll the full view).
  • If you go to a category below an expanded category and press up to go over the content of the previous category, the first item of this category should get the higlight, not the first item of the last line of this category. [2D: fail]
  • If you refocus the same "show less results" and press enter, the content of this category should collapse.
  • Tab should navigate yourself between categories [2D: fail, lp:891648]


FIX KEYBOARD NAVIGATION ON FILTERS AND THEN WRITE TEST CASES FOR IT


  • Press super, click to open a lens
  • Make a search, open the filters and choose some options
  • Close the dash with super
  • Reopen it, click to open the same lens

-> you should see the same search results, with the same filter enabled [2D: fail]


  • Press super
  • Make a search
  • Close the dash with super
  • Reopen it

-> you should have the "search field" reseted


prereq: gedit is installed

  • press alt + f2

-> the runner lens should be shown (no filter should be there)

  • type "ged"

-> you should see gedit in a "result" category with the gedit icon

  • press enter

-> gedit should run


prereq: previous case

  • press alt + f2

-> the runner lens should be shown, with a "history" category (10 results at most)


  • press alt + f2
  • type "dpkg"

-> you should see a lot of dpkg- in a "result category" with an engine icon


  • press alt + f2
  • enter /

-> in the result, the / content should be shown

  • type "bin" (so you have "/bin")

-> you should see only the /bin with a directory icon

  • Press enter

-> nautilus (or your default file manager) should open in /bin


  • press alt + f2
  • enter "/bin/"

-> all executables from the /bin directory should be proposed as result


prereq: knowing a directory from your home

  • press alt + f2
  • enter ~/.config

-> ensure that a match is done


Alt - Tab

  • Open two different applications, focus application A
  • Press alt + tab, keep alt pressed

-> you should see an alt tab dialog appearing after few milliseconds, showing icons for "show desktop" [2D: fail], application A and application B. The application B icon should be highlighted

  • Press tab continually

-> the highlight should cycle through the available icons, having the window title displayed below the icon


  • Open two different applications, focus application A
  • Press alt + tab, keep alt pressed until the window show
  • release alt

-> application B should get the focus and being raised


  • Open two different applications, minimize application B, focus application A
  • Press alt + tab, keep alt pressed until the window show
  • release alt

-> application B should get the focus and being restored and raised


  • Open two different applications, focus application A
  • Press alt + tab quickly

-> the alt-tab window should not appear [2D: fail] and application B should get the focus and being raised


  • Open an application
  • Press alt + tab, keep alt pressed until highlighting the currently focused application
  • release alt

-> Nothing should happen


  • Open an application with multiple instances
  • Press alt + tab until you highlight this application, keep alt pressed

-> after a tempo, all windows for this application should be shown [2D: fail]

  • Continue pressing tab

-> the highlight should go over the next window, the title of each window should be displayed at the bottom. Then, if you continue pressing tab, it will then cycle to the next application (and application to application) [2D: fail]


  • Open an application with multiple instances
  • Press alt + tab until you hilight this application, keep alt pressed

-> after a tempo, all windows for this application should be shown [2D: fail]

  • Continue pressing tab to hilight the next window
  • release alt

-> the selected window should be focused


  • Open an application with multiple instances (some of them should be minimized)
  • Press alt + tab until you highlight this application, keep alt pressed

-> after a tempo, all windows for this application should be shown (even minimized ones) [2D: fail]

  • Continue pressing tab to highlight on a minimized window
  • release alt

-> the selected window should be restored and focused


  • Open an application with multiple instances, this one being focused
  • Press alt + key above tab, keep alt pressed

-> the alt - tab window should be presented, showing the application windows directly [2D: fail]

  • Continue pressing key above tab, you should cycle only between the windows of this application [2D: fail]


  • Open an application with multiple instances, this one being focused
  • Press alt + key above tab quickly

-> the focus should go over the next window from the same application


  • Open an application with multiple instances, this one being focused
  • then, focus another window of the same application
  • Press alt + tab quickly

-> the focus should go over the previous window of the same application


  • Open two applications, one having multiple instances
  • focus the application having only one instance
  • alt + tab to the application with multiple instances

-> all windows from this applications should be raised. One should be focused [2D: fail]

  • close the focus window

-> the focus should go over another window of the same application, not on the application with only one instance [2D: fail]


  • Open two application on different workspaces, focus one
  • Press alt + tab

-> the other application on the other workspace should be focused and your view should be moved to that workspace. [2D: fail]


Window Management

  • Open an application
  • drag the title bar

-> the window should move


  • Open two applications
  • click on one application

-> this one should get the focus and be shown above the other window. The title bar should go from being dark to have buttons with colors (on the left), and containing the application title.

  • click on the other application

-> this one should get the focus, the other application window should go to the previous state and the new window should be stacked above the other one.


  • Open an application
  • Drag the title bar of the window

-> the window should move


[2D: entire test-case not supported]

  • Open an application
  • Drag the title bar to the top unity panel

-> the window should should a maximize preview and then, be maximized on release

  • Drag the title bar rom the unity panel downwards

-> the window should be restored

  • Drag the title bar to the left of the monitor (the mouse cursor itself should be on the left)

-> the window should be semi-maximized, taking half of the screen

  • Drag the title bar a little bit

-> after some resistance, the window should be restored

  • Drag the title bar to the right of the monitor (the mouse cursor itself should be on the right)

-> the window should be semi-maximized, taking half of the screen

  • Drag the title bar a little bit

-> after some resistance, the window should be restored


[2D: entire test-case not supported]

  • Open an application
  • drag the title bar slowly to the left or right of the screen

-> you should have some "resistance" on the window before it starts going off the screen.


  • Open an application
  • Click on the maximize button of the title bar

-> the window should be maximize


  • Open an application
  • Double-click on the title bar

-> the window should be maximize


  • Open an application
  • Click on the close button of the title bar

-> the application should be closed


  • Open an application
  • Click on the minimize button of the title bar

-> the application should be minimized, the launcher


  • Open an application
  • bring your cursor next to the right edge of the window

-> the cursor sould transform in a resize cursor

  • drag the edge to resize to window

-> some window shadows should appear when you start resizing. Release the drag should actually resize the window. [2D: fail]

  • ensure the same works with the bottom edge as well as the buttom and right border (to resize both sides at the same time)


  • Open an application
  • right click on the title bar

-> a menu should appear

  • Ensure that minimize/maximize/move/close entries works


  • Open 2 applications
  • right click on the title bar

-> a menu should appear

  • Click on "always visible"
  • raise the other application

-> check that the other application is will stay behind the first one, even when having the focus


  • Open an application
  • right click on the title bar

-> a menu should appear

  • Click on "always visible on this workspace" [2D: "Always on visible workspace"]
  • Click on the spread icon in the launcher

-> check that this application is visible on all workspaces


  • Open an application
  • right click on the title bar

-> a menu should appear

  • Use the other items to move your windows between workspaces and ensure that you see what you expect.


Multi-monitors (BLOCKED: needs the multimonitor upstream work done first)

Touch

UnityTests (last edited 2011-11-30 17:53:28 by gerboland)