on xenial help sign in
Take into account the status in nexus10.
commitc660627d14c8b2d78abcc0b88a8c1df526067b4f authorLeo Arias <leo.arias@canonical.com> dateMon 31 Mar 2014, 12:11 (13 years ago) parentcbcd43c
1 file changed+3−1
tests/autopilot/unity8/shell/emulators/dash.py+3−1
tests/autopilot/unity8/shell/emulators/dash.py+3−1
@@ -23,6 +23,7 @@ from unity8.shell import emulators
2323
2424from autopilot import logging as autopilot_logging
2525from autopilot.introspection import dbus
26+from testtools.matchers import MatchesAny, Equals
2627from ubuntuuitoolkit import emulators as toolkit_emulators
2728
2829
@@ -145,7 +146,8 @@ class Dash(emulators.UnityEmulatorBase):
145146 page_header = self._get_page_header()
146147 search_container = page_header.select_single(
147148 'QQuickItem', objectName='searchContainer')
148− search_container.state.wait_for('narrowActive')
149+ search_container.state.wait_for(
150+ MatchesAny(Equals('narrowActive'), Equals('active')))
149151 return search_container.select_single(toolkit_emulators.TextField)
150152
151153