Merge lp:~veebers/unity/testfix_hudvisuals_workspaces into lp:unity
Proposed by
Christopher Lee
Status: | Work in progress |
---|---|
Proposed branch: | lp:~veebers/unity/testfix_hudvisuals_workspaces |
Merge into: | lp:unity |
Diff against target: |
22 lines (+8/-1) 1 file modified
tests/autopilot/unity/tests/test_hud.py (+8/-1) |
To merge this branch: | bzr merge lp:~veebers/unity/testfix_hudvisuals_workspaces |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis Ginther | Abstain | ||
jenkins (community) | continuous-integration | Disapprove | |
Thomi Richards (community) | Needs Fixing | ||
Review via email: mp+110725@code.launchpad.net |
Commit message
Autopilot Hud Tests now check against active app icon, not a hardcoded value.
Description of the change
Problem:
The test test_dash_
Solution:
Test now checks for the active app and uses that falling back on the originally hard-coded 'launcher_bfb.png' one would find on a blank desktop.
Tests:
Ran the test a couple of times through with different apps open on the 2nd workspace as well as no apps on the 2nd workspace.
To post a comment you must log in.
Unmerged revisions
- 2419. By Christopher Lee
-
Test now checks against active apps icon, not hardcoded
Hi,
I'm afraid this needs fixing - while you've made the test pass, it no longer tests what it says on the tin. The test is supposed to ensure that, when no active applications are found on the current desktop the HUD must use the BFB icon, rather than an application icon.
I suggest making a method in the workspace switcher emulator (in the autopilot codebase) called "move_to_ blank_workspace ". This method attempts to find a blank workspace and switch to it, or raises a particular exception with the message "No empty workspaces found". We should then use this everywhere where we need a blank workspace.
Does that make sense? Talk to me later if it doesn't.