on xenial help sign in
Updated the test search.
commiteb8963fece47c85cdb09951dddf4837a7ccee47c authorLeo Arias <leo.arias@canonical.com> dateWed 30 Jul 2014, 14:01 (12 years ago) parente9e03f9
1 file changed+5−5
tests/autopilot/unity8/shell/tests/test_emulators.py+5−5
tests/autopilot/unity8/shell/tests/test_emulators.py+5−5
@@ -47,14 +47,14 @@ class MainWindowTestCase(tests.UnityTestCase):
4747 unity_proxy = self.launch_unity()
4848 process_helpers.unlock_unity(unity_proxy)
4949
50− def test_search(self):
51− self.main_window.search('Test')
52− text_field = self.main_window.get_dash()._get_search_text_field()
53− self.assertEqual(text_field.text, 'Test')
54−
5550
5651class DashEmulatorTestCase(tests.DashBaseTestCase):
5752
53+ def test_search(self):
54+ self.dash.enter_search_query('Test')
55+ text_field = self.dash._get_search_text_field()
56+ self.assertEqual(text_field.text, 'Test')
57+
5858 def test_open_unexisting_scope(self):
5959 scope_name = 'unexisting'
6060 with mock.patch.object(self.dash, 'pointing_device') as mock_pointer: