on xenial help sign in
Updated the test search.
eb8963fLeo Arias
tests/autopilot/unity8/shell/tests/test_emulators.py+5−5
@@ -47,14 +47,14 @@ class MainWindowTestCase(tests.UnityTestCase):
47 unity_proxy = self.launch_unity()
47 unity_proxy = self.launch_unity()
48 process_helpers.unlock_unity(unity_proxy)
48 process_helpers.unlock_unity(unity_proxy)
49
49
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−
55
50
56class DashEmulatorTestCase(tests.DashBaseTestCase):
51class DashEmulatorTestCase(tests.DashBaseTestCase):
57
52
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+
58 def test_open_unexisting_scope(self):
58 def test_open_unexisting_scope(self):
59 scope_name = 'unexisting'
59 scope_name = 'unexisting'
60 with mock.patch.object(self.dash, 'pointing_device') as mock_pointer:
60 with mock.patch.object(self.dash, 'pointing_device') as mock_pointer: