Need a method or add to select_single so that it can wait for the object to exists instead of returning straight away.
Bug #1223428 reported by
Christopher Lee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
Critical
|
Unassigned | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
At the moment there are cases where test authors need to inject many asserts/Eventuallys so that select_single/many returns an object that takes moments to appear in the introspection tree.
After discussion the best suggestion is a new method on an application proxy object similar to:
main_window = app.wait_
(the new method name isn't set in rock, but is on of the better ones suggested.)
Related branches
lp:~thomir-deactivatedaccount/autopilot/create-wait_select-methods
- PS Jenkins bot: Approve (continuous-integration)
- Martin Pitt (community): Approve
-
Diff: 92 lines (+53/-1)2 files modifiedautopilot/introspection/dbus.py (+34/-0)
autopilot/tests/functional/test_dbus_query.py (+19/-1)
Changed in autopilot: | |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Thomi Richards (thomir) |
Changed in autopilot: | |
milestone: | 1.4 → none |
Changed in autopilot: | |
milestone: | none → 1.4 |
Changed in autopilot: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix committed into lp:autopilot/1.3 at revision 329, scheduled for release in autopilot, milestone Unknown