on xenial help sign in
Add debug logging to passphrase entry.

Approved by PS Jenkins bot, Łukasz Zemczak, Didier Roche.

commitc67a52ebef85a11530abacf8dfafe3a13db476ef authorMichał Sawicz <michal.sawicz@canonical.com> dateTue 13 Aug 2013, 13:55 (13 years ago) parent6e377d68a5c44d
1 file changed+4
tests/autopilot/unity8/shell/tests/test_lock_screen.py+4
tests/autopilot/unity8/shell/tests/test_lock_screen.py+4
@@ -27,7 +27,9 @@ from autopilot.matchers import Eventually
2727from autopilot.platform import model
2828from testtools import skipUnless
2929from testtools.matchers import Equals
30+import logging
3031
32+logger = logging.getLogger(__name__)
3133
3234class TestLockscreen(UnityTestCase):
3335
@@ -144,6 +146,7 @@ class TestLockscreen(UnityTestCase):
144146 pinentryField = self.main_window.get_pinentryField()
145147 self.touch.tap_object(pinentryField)
146148 self.keyboard.type(passphrase)
149+ logger.debug("Typed passphrase: %s", pinentryField.text)
147150 self.keyboard.type("\n")
148151
149152 def _enter_prompt_passphrase(self, passphrase):
@@ -160,4 +163,5 @@ class TestLockscreen(UnityTestCase):
160163 prompt = self.main_window.get_greeter().get_prompt()
161164 self.touch.tap_object(prompt)
162165 self.keyboard.type(passphrase)
166+ logger.debug("Typed passphrase: %s", prompt.text)
163167 self.keyboard.type("\n")