Need tests to run in different orientations
Bug #1428087 reported by
Cris Dywan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
Medium
|
Cris Dywan | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
New
|
Undecided
|
Unassigned |
Bug Description
We've had regressions in behavior and at least one crash recently due to the lack of testing under different orientations. Evidently even manual testing doesn't cover basic use cases judging by the nature of those issues - which may be in part due to development images receiving less QA attention, which makes it even more problematic.
1. We need ways to execute Autopilot tests under different orientations.
2. A test needs to be able to change orientation mid-way.
Related branches
lp://staging/~canonical/unity8/fake_platform_sensors_module
- Christopher Lee (community): Needs Fixing
- Leo Arias (community): Needs Fixing (read the code.)
-
Diff: 250 lines (+178/-10)4 files modifiedtests/autopilot/unity8/fixture_setup.py (+55/-2)
tests/autopilot/unity8/indicators/tests/test_display_indicator.py (+31/-6)
tests/autopilot/unity8/process_helpers.py (+2/-2)
tests/autopilot/unity8/sensors.py (+90/-0)
lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/orientationManual
Rejected
for merging
into
lp://staging/ubuntu-ui-toolkit/staging
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Leo Arias (community): Approve
- Tim Peeters: Approve
- Zsombor Egri: Pending requested
-
Diff: 664 lines (+304/-37)19 files modifiedmodules/Ubuntu/Components/1.3/MainView.qml (+1/-0)
modules/Ubuntu/Components/1.3/MainViewBase.qml (+19/-0)
modules/Ubuntu/Components/1.3/OrientationHelper.qml (+3/-9)
modules/Ubuntu/Components/1.3/TextCursor.qml (+10/-1)
modules/Ubuntu/Components/Popups/1.2/popupUtils.js (+1/-1)
modules/Ubuntu/Components/Popups/1.3/PopupBase.qml (+6/-7)
modules/Ubuntu/Components/plugin/plugin.cpp (+0/-7)
modules/Ubuntu/Components/plugin/ucapplication.cpp (+41/-1)
modules/Ubuntu/Components/plugin/ucapplication.h (+5/-0)
tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_mainview.py (+13/-0)
tests/autopilot/ubuntuuitoolkit/tests/components/test_popover.py (+44/-0)
tests/autopilot/ubuntuuitoolkit/tests/components/test_popover.qml (+56/-5)
tests/autopilot/ubuntuuitoolkit/tests/components/test_textinput.header.qml (+1/-1)
tests/autopilot/ubuntuuitoolkit/tests/components/test_textinput.py (+26/-0)
tests/autopilot/ubuntuuitoolkit/tests/components/test_textinput.textarea.qml (+3/-1)
tests/autopilot/ubuntuuitoolkit/tests/components/test_textinput.textfield.qml (+11/-3)
tests/autopilot/ubuntuuitoolkit/tests/components/test_textinput.textfield_custom.qml (+3/-1)
tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_main_view.orientation.qml (+29/-0)
tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_main_view.py (+32/-0)
tags: | added: landscape |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → In Progress |
summary: |
- Need (some) Autopilot tests to run in different orientations + Need tests to run in different orientations |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Confirmed |
importance: | Critical → Medium |
To post a comment you must log in.
As per discussion we should actually aim to simulate orientation changes within the UITK without depending on the shell to enable tests not relying on the environment. I'll take another look into what options we have here. And in that sense using actual sensors will only be an addition to that.