Need OSK input device on phones
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Richard Huddie |
Bug Description
Currently although it may look as though we have an OSK in Autopilot tests running on phones, keyboard input emits synthetic events. This makes testing of particular behavior involving pre-edit text impossible to test (see also bug 1428206). We don't have unit tests for this either because maliit is very hard to spawn, so we essentially never run any of the tests for it.
def get_keyboard():
"""Return the keyboard device."""
# TODO return the OSK if we are on the phone. --elopio - 2014-01-13
return input.Keyboard.
As per my understanding we should have an input device that talks to maliit using introspection (accessibility?), which is the way tests run in ubuntu-keyboard, but those aren't right now re-usable by other projects.
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Cris Dywan: Approve
- Leo Arias: Pending requested
-
Diff: 432 lines (+235/-61)7 files modifieddebian/control (+1/-0)
tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_common.py (+141/-3)
tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textarea.py (+28/-5)
tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py (+58/-40)
tests/autopilot/ubuntuuitoolkit/tests/components/test_textinput.py (+2/-0)
tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_textarea.py (+2/-11)
tests/autopilot/ubuntuuitoolkit/tests/gallery/test_textinput.py (+3/-2)
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Ubuntu SDK team: Pending requested
-
Diff: 309 lines (+174/-27)4 files modifieddebian/control (+1/-0)
tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_common.py (+133/-3)
tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py (+36/-24)
tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_textfield.py (+4/-0)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Richard Huddie (rhuddie) |
status: | Confirmed → Fix Committed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Fix Committed → Fix Released |
I think we should extend these to be used also on unit tests. We do not run those as we do not have OSK on desktop environments. I think it would be worth having those there as well.