Many autopilot tests will fail if the orientation of the app is landscape on startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtubuntu-sensors |
Fix Released
|
Undecided
|
Brendan Donegan | ||
webbrowser-app |
Invalid
|
Undecided
|
Unassigned | ||
qtubuntu-sensors (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
There are a lot of failures in webbrowser-app recently that have this common cause:
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/home/
return self.get_
File "/usr/lib/
return f(instance, *args, **kwargs)
File "/home/
self.
File "/usr/lib/
failure_msg))
AssertionError: After 10.0 seconds test on Panel.opened failed: True != dbus.Boolean(False, variant_level=1)
After a bit of a stroke of luck, we finally realised this happens because when the app starts, even though the phone is lying flat, the app orients itself in landscape mode. This is an issue because currently the toolbar cannot be revealed when the web browser is in landscape mode. We could fix these failures in a number of ways, either by fixing unity so that the toolbar can be revealed, or by ensuring somehow that the app starts in portrait mode.
Related branches
- Ricardo Mendoza (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 12 lines (+1/-1)1 file modifiedplugins/sensors/core_orientation_sensor.cpp (+1/-1)
tags: | added: qa-broken-test qa-daily-testing qa-landing-email |
Changed in webbrowser-app: | |
status: | New → Invalid |
Changed in qtubuntu-sensors: | |
status: | New → In Progress |
assignee: | nobody → Brendan Donegan (brendan-donegan) |
Changed in qtubuntu-sensors: | |
status: | In Progress → Fix Released |
I don’t think this issue should be worked around in the browser app. It’s an issue in the shell, and it should be fixed there. It has existed since the very beginning, and it affects all applications that react to orientation changes and expose some sort of functionality through the bottom edge.
Note that webbrowser-app uses the standard MainView component from the UITK, which handles orientation changes under the hood, so I don’t think we can hack it to force portrait mode. Besides, even if we could, it wouldn’t make sense to break the UX (starting in portrait mode while in landscape orientation is unexpected) to make the tests more reliable.
What about the orientation sensor’s sensitivity? It looks like this is a relatively recent regression, couldn’t it be fixed/improved there?
Finally, have we considered a setup where test devices are standing upright, to prevent this from happening at all?