Merge lp:~canonical-platform-qa/ubuntuone-credentials/workaround1442733-dismiss_osk into lp:ubuntuone-credentials

Proposed by Leo Arias
Status: Merged
Approved by: dobey
Approved revision: 191
Merged at revision: 194
Proposed branch: lp:~canonical-platform-qa/ubuntuone-credentials/workaround1442733-dismiss_osk
Merge into: lp:ubuntuone-credentials
Diff against target: 59 lines (+14/-1)
2 files modified
debian/control (+1/-0)
online-accounts-provider/tests/autopilot/ubuntuone_credentials/__init__.py (+13/-1)
To merge this branch: bzr merge lp:~canonical-platform-qa/ubuntuone-credentials/workaround1442733-dismiss_osk
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
dobey (community) Approve
Review via email: mp+255867@code.launchpad.net

Commit message

On autopilot helpers, dismiss the on-screen keyboard when filling the new account form. Workaround for bug #1442733.

To post a comment you must log in.
Revision history for this message
dobey (dobey) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

how do we land this dobey? Doesn't it need to be top-approved?

Revision history for this message
dobey (dobey) wrote :

As Vivid is in Final Freeze now, it will have to wait until next week to land, after we get branches sorted out for dealing with landing things in W and whatever stable branches we'll have. Since much of CI are at the physical UE sprint this week, we're waiting until Monday to deal with getting our branch arrangement settled for moving forward. It is on my radar though, so as soon as we get that worked out and everything set up, I'll land this in the appropriate place. Thanks.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2015-04-01 17:53:54 +0000
3+++ debian/control 2015-04-10 17:31:34 +0000
4@@ -54,6 +54,7 @@
5 qtdeclarative5-ubuntu-ui-toolkit-plugin | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles,
6 qtdeclarative5-ubuntuone1.0,
7 qttestability-autopilot | libautopilot-qt,
8+ ubuntu-keyboard-autopilot,
9 ubuntu-ui-toolkit-autopilot,
10 ${misc:Depends},
11 ${python:Depends},
12
13=== modified file 'online-accounts-provider/tests/autopilot/ubuntuone_credentials/__init__.py'
14--- online-accounts-provider/tests/autopilot/ubuntuone_credentials/__init__.py 2014-07-28 22:31:24 +0000
15+++ online-accounts-provider/tests/autopilot/ubuntuone_credentials/__init__.py 2015-04-10 17:31:34 +0000
16@@ -1,6 +1,6 @@
17 # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
18 #
19-# Copyright (C) 2013-2014 Canonical Ltd.
20+# Copyright (C) 2013-2015 Canonical Ltd.
21 #
22 # This program is free software; you can redistribute it and/or modify
23 # it under the terms of the GNU General Public License version 3, as published
24@@ -15,6 +15,8 @@
25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26
27 import ubuntuuitoolkit
28+from autopilot import platform
29+from ubuntu_keyboard.emulators import keyboard
30
31
32 class NewAccount(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
33@@ -75,16 +77,26 @@
34 name_text_field.write(name)
35
36 def _enter_password_new_user(self, password):
37+ self._dismiss_on_screen_keyboard()
38 password_text_field = self.select_single(
39 ubuntuuitoolkit.TextField, objectName='newPasswordTextField')
40 password_text_field.write(password)
41
42+ def _dismiss_on_screen_keyboard(self):
43+ # XXX instead of dismissing the keyboard, the toolkit should take it
44+ # into account when swiping things into view. See bug #1442733.
45+ # -- elopio - 2015-02-24
46+ if platform.model() != 'Desktop':
47+ keyboard.Keyboard().dismiss()
48+
49 def _enter_password_confirmation(self, password_confirmation):
50+ self._dismiss_on_screen_keyboard()
51 confirm_password_text_field = self.select_single(
52 ubuntuuitoolkit.TextField, objectName='confirmPasswordTextField')
53 confirm_password_text_field.write(password_confirmation)
54
55 def _agree_to_terms(self, agree):
56+ self._dismiss_on_screen_keyboard()
57 terms_and_conditions_check_box = self.select_single(
58 ubuntuuitoolkit.CheckBox,
59 objectName='termsAndConditionsCheckBox')

Subscribers

People subscribed via source and target branches