ubuntu_sanity_tests.tests.test_with_webbrowser.WebbrowserSanityTest.test_014_webbrowser fails to clear address bar sometimes

Bug #1441551 reported by Brendan Donegan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-system-tests
Fix Released
High
Richard Huddie
webbrowser-app
Fix Released
Undecided
Leo Arias
webbrowser-app (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Occasionally the webbrowser test is failing because it fails to clear the address bar for some reason, giving the following traceback:

Traceback (most recent call last):
  File "/tmp/adt-run.moWGvJ/build.jaB/real-tree/ubuntu_sanity_tests/tests/test_with_webbrowser.py", line 130, in test_014_webbrowser
    browser.main_window.go_to_url(second_page.title_url)
  File "/tmp/adt-run.moWGvJ/deps/usr/lib/python3/dist-packages/webbrowser_app/emulators/browser.py", line 54, in go_to_url
    self.address_bar.go_to_url(url)
  File "/tmp/adt-run.moWGvJ/deps/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/tmp/adt-run.moWGvJ/deps/usr/lib/python3/dist-packages/webbrowser_app/emulators/browser.py", line 179, in go_to_url
    self.write(url)
  File "/tmp/adt-run.moWGvJ/deps/usr/lib/python3/dist-packages/webbrowser_app/emulators/browser.py", line 183, in write
    self.text_field.write(text, clear)
  File "/tmp/adt-run.moWGvJ/deps/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/tmp/adt-run.moWGvJ/deps/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py", line 53, in write
    self.clear()
  File "/tmp/adt-run.moWGvJ/deps/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/tmp/adt-run.moWGvJ/deps/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py", line 67, in clear
    self.text.wait_for('')
  File "/tmp/adt-run.moWGvJ/deps/usr/lib/python3/dist-packages/autopilot/introspection/types.py", line 180, in wait_for
    failure_msg))
AssertionError: After 10.0 seconds test on TextField.text failed: !=:
reference = ''
actual = dbus.String('http://start.ubuntu.com/current/Google/?sourceid=hp', variant_level=1)

Some initial suspicions are that the button is not enabled at the point when it's being clicked, or some other UI component (such as copy/paste pop-up) is in the way.

Related branches

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

This is probably a generic bug in the UITK helpers so will eventually need a task there once we confirm what's wrong

Vincent Ladeuil (vila)
Changed in ubuntu-sanity-tests:
status: New → Confirmed
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-sanity-tests at revision 106, scheduled for release in ubuntu-sanity-tests, milestone Unknown

Changed in ubuntu-sanity-tests:
status: Confirmed → Fix Committed
Leo Arias (elopio)
Changed in webbrowser-app:
status: New → In Progress
assignee: nobody → Leo Arias (elopio)
Vincent Ladeuil (vila)
Changed in ubuntu-sanity-tests:
assignee: nobody → Richard Huddie (rhuddie)
importance: Undecided → High
status: Fix Committed → Fix Released
Olivier Tilloy (osomon)
Changed in webbrowser-app:
status: In Progress → Fix Released
Changed in webbrowser-app (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.