on xenial help sign in
Fix passphrase entry in autopilot
commit596a2753804c4973b729bf8b92dc3b96af1dea28 authorMichael Terry <michael.terry@canonical.com> dateMon 29 Sep 2014, 15:54 (12 years ago) parent162c50f
1 file changed+3−1
tests/autopilot/unity8/shell/tests/test_lock_screen.py+3−1
tests/autopilot/unity8/shell/tests/test_lock_screen.py+3−1
@@ -132,8 +132,10 @@ class TestLockscreen(UnityTestCase):
132132 )
133133
134134 pin_entry_field = self.main_window.get_pinentryField()
135− pin_entry_field.write(passphrase)
135+ # pinentryField should automatically have focus
136+ self.keyboard.type(passphrase)
136137 logger.debug("Typed passphrase: %s", pin_entry_field.text)
138+ self.assertEqual(pin_entry_field.text, passphrase)
137139 self.keyboard.type("\n")
138140
139141 def _enter_prompt_passphrase(self, passphrase):