← Back to team overview

ubuntu-webapps-bugs team mailing list archive

[Bug 1337284] [NEW] Many autopilot tests will fail if the orientation of the app is landscape on startup

 

Public bug reported:

There are a lot of failures in webbrowser-app recently that have this
common cause:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/webbrowser_app/tests/test_tabs.py", line 160, in test_error_only_for_current_tab
    self.ensure_activity_view_visible()
  File "/usr/lib/python3/dist-packages/webbrowser_app/tests/__init__.py", line 164, in ensure_activity_view_visible
    self.main_window.open_toolbar().click_button("activityButton")
  File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/home/phablet/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_mainview.py", line 59, in open_toolbar
    return self.get_toolbar().open()
  File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/home/phablet/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_toolbar.py", line 41, in open
    self.opened.wait_for(True)
  File "/usr/lib/python3/dist-packages/autopilot/introspection/types.py", line 181, in wait_for
    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.

** Affects: webbrowser-app
     Importance: Undecided
         Status: New


** Tags: qa-broken-test qa-daily-testing qa-landing-email

** Tags added: qa-broken-test qa-daily-testing qa-landing-email

-- 
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to webbrowser-app.
https://bugs.launchpad.net/bugs/1337284

Title:
  Many autopilot tests will fail if the orientation of the app is
  landscape on startup

Status in Web Browser App:
  New

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/python3/dist-packages/webbrowser_app/tests/test_tabs.py", line 160, in test_error_only_for_current_tab
      self.ensure_activity_view_visible()
    File "/usr/lib/python3/dist-packages/webbrowser_app/tests/__init__.py", line 164, in ensure_activity_view_visible
      self.main_window.open_toolbar().click_button("activityButton")
    File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
      return f(instance, *args, **kwargs)
    File "/home/phablet/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_mainview.py", line 59, in open_toolbar
      return self.get_toolbar().open()
    File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
      return f(instance, *args, **kwargs)
    File "/home/phablet/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_toolbar.py", line 41, in open
      self.opened.wait_for(True)
    File "/usr/lib/python3/dist-packages/autopilot/introspection/types.py", line 181, in wait_for
      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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/webbrowser-app/+bug/1337284/+subscriptions


Follow ups

References