2 flaky autopilot tests on touch devices
Bug #1591120 reported by
Olivier Tilloy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webbrowser-app (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Lately I’ve been observing that the following two autopilot tests are flaky when run on phones:
webbrowser_
webbrowser_
They don’t always fail, but it’s quite easy to get them to fail after a few attempts. This requires further investigation.
Related branches
lp:~osomon/webbrowser-app/fix-one-flaky-ap-test-1591120
- system-apps-ci-bot: Needs Fixing (continuous-integration)
- Ubuntu Phablet Team: Pending requested
-
Diff: 30 lines (+6/-5)1 file modifiedtests/autopilot/webbrowser_app/tests/test_new_tab_view.py (+6/-5)
Changed in webbrowser-app (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in webbrowser-app (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in webbrowser-app (Ubuntu): | |
assignee: | Olivier Tilloy (osomon) → nobody |
To post a comment you must log in.
Traceback for the first failure, which I’m observing even more often than the second one:
Traceback (most recent call last): python3/ dist-packages/ webbrowser_ app/tests/ test_new_ tab_view. py", line 317, in test_remove_ bookmarks_ when_collapsed _remove_ first_bookmark( ) python3/ dist-packages/ webbrowser_ app/tests/ test_new_ tab_view. py", line 291, in _remove_ first_bookmark NotEquals( url))) python3/ dist-packages/ testtools/ testcase. py", line 421, in assertThat er(matchee, matcher, message, verbose) python3/ dist-packages/ testtools/ testcase. py", line 471, in _matchHelper match(matchee) python3/ dist-packages/ autopilot/ matchers/ __init_ _.py", line 111, in match fun(self. matcher, self.timeout) python3/ dist-packages/ autopilot/ matchers/ __init_ _.py", line 127, in _callable_wait_for python3/ dist-packages/ webbrowser_ app/tests/ test_new_ tab_view. py", line 290, in <lambda> tab_view. get_bookmark_ delegates( )[1].url, python3/ dist-packages/ webbrowser_ app/emulators/ browser. py", line 605, in get_bookmark_ delegates globalRect. y) python3/ dist-packages/ webbrowser_ app/emulators/ browser. py", line 605, in <lambda> globalRect. y) python3/ dist-packages/ autopilot/ introspection/ dbus.py" , line 411, in __getattr__ refresh_ state() python3/ dist-packages/ autopilot/ introspection/ dbus.py" , line 367, in refresh_state new_state( ) python3/ dist-packages/ autopilot/ introspection/ dbus.py" , line 429, in _get_new_state ror(self. __class_ _.__name_ _, id=self.id) exceptions. StateNotFoundEr ror: Object not found with name 'UrlDelegate' and properties {'id': 47}.
File "/usr/lib/
self.
File "/usr/lib/
Eventually(
File "/usr/lib/
mismatch_error = self._matchHelp
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
wait_
File "/usr/lib/
new_value = refresh_fn()
File "/usr/lib/
lambda: self.new_
File "/usr/lib/
key=lambda delegate: delegate.
File "/usr/lib/
key=lambda delegate: delegate.
File "/usr/lib/
self.
File "/usr/lib/
_, new_state = self._get_
File "/usr/lib/
raise StateNotFoundEr
autopilot.