Merge lp:~aacid/unity-2d/unity-2d_test_dash_launcher_interactions into lp:unity-2d
Proposed by
Albert Astals Cid
Status: | Merged |
---|---|
Approved by: | MichaĆ Sawicz |
Approved revision: | 876 |
Merged at revision: | 878 |
Proposed branch: | lp:~aacid/unity-2d/unity-2d_test_dash_launcher_interactions |
Merge into: | lp:unity-2d |
Diff against target: |
97 lines (+89/-0) 1 file modified
tests/places/places-tests.rb (+89/-0) |
To merge this branch: | bzr merge lp:~aacid/unity-2d/unity-2d_test_dash_launcher_interactions |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gerry Boland (community) | Approve | ||
Review via email: mp+90155@code.launchpad.net |
Description of the change
[Test] Check Super, Alt+F1 interaction and Super, Super, Alt+F1 interaction
To post a comment you must log in.
You are settings many of the verify timeouts to zero. Bear in mind that the purpose of these timeouts is to give some lee-way for old/show machines or those under load from other processes at test time.
If the verify condition is true, it will return immediately. Otherwise it waits for a period (timeout) until the condition is correct, and throws fail exception is the timeout expires.
This is why asserts are not good for app testing.
I think it good to give generous timeouts to all verify statements, only exception being if you are checking on the timing of a particular condition becoming true (and those nested verify thingys).
I'm guessing it's why I got this error, as the test should pass:
Verification "Launcher should be showing after pressing Alt+F1" at ./places/ places- tests.rb: 202:in `test_Super_ _Super_ and_Alt_ F1_interaction' failed as an exception was thrown when the verification block was executed
verify_ true( 1 ) {
@app_ launcher. Unity2dPanel( )['x_absolute' ].to_i != 0
=> verify_not(0, 'Launcher should be showing after pressing Alt+F1') {
Details:
#<TypeError: exception object expected>