on xenial help sign in
Add autopilot test for greeter hiding when app opens
c5219dfMichael Terry
tests/autopilot/unity8/application_lifecycle/tests/test_application_lifecycle.py+14
@@ -135,3 +135,17 @@ class ApplicationLifecycleTests(UnityTestCase):
135 self._get_current_focused_app_id(),
135 self._get_current_focused_app_id(),
136 Eventually(Equals("messaging-app"))
136 Eventually(Equals("messaging-app"))
137 )
137 )
138+
139+ @disable_qml_mocking
140+ def test_greeter_hides_on_app_open(self):
141+ """Greeter should hide when an app is opened"""
142+ unity_proxy = self.launch_unity()
143+ greeter = main_window.get_greeter()
144+ self.assertThat(greeter.created, Eventually(Equals(True)))
145+
146+ app = self._launch_app("messaging-app")
147+ self.assertThat(greeter.created, Eventually(Equals(False)))
148+ self.assertThat(
149+ self._get_current_focused_app_id(),
150+ Eventually(Equals("messaging-app"))
151+ )