Merge lp:~mzanetti/unity/phablet-autopilot into lp:unity/phablet

Proposed by Michael Zanetti on 2013-03-01
Status: Merged
Approved by: Albert Astals Cid on 2013-03-01
Approved revision: 442
Merged at revision: 441
Proposed branch: lp:~mzanetti/unity/phablet-autopilot
Merge into: lp:unity/phablet
Diff against target: 48 lines (+44/-0)
1 file modified
tests/autopilot/qml_phone_shell/tests/helpers.py (+44/-0)
To merge this branch: bzr merge lp:~mzanetti/unity/phablet-autopilot
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve on 2013-03-01
Albert Astals Cid (community) 2013-03-01 Approve on 2013-03-01
Review via email: mp+151162@code.launchpad.net

This proposal supersedes a proposal from 2013-03-01.

Commit message

added missing helpers.py file

Description of the change

added missing helpers.py file

To post a comment you must log in.
Albert Astals Cid (aacid) wrote :

ok, tests fail in a different way now but i think that's because of my setup now and nothing to do with missing files

review: Approve
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Autolanding.
No commit message was specified in the merge proposal. Hit 'Add commit message' on the merge proposal web page or follow the link below. You can approve the merge proposal yourself to rerun.
https://code.launchpad.net/~mzanetti/unity/phablet-autopilot/+merge/151162/+edit-commit-message

review: Needs Fixing (continuous-integration)
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:442
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~mzanetti/unity/phablet-autopilot/+merge/151162/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/phablet-unity-ci/708/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-unity-ci/./build=panda-pbuilder,distribution=quantal,flavor=armhf/708/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-unity-ci/./build=pbuilder-master,distribution=quantal,flavor=i386/708/console

Click here to trigger a rebuild:
http://jenkins.qa.ubuntu.com/job/phablet-unity-ci/708//rebuild/?

review: Needs Fixing (continuous-integration)
Albert Astals Cid (aacid) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'tests/autopilot/qml_phone_shell/tests/helpers.py'
2--- tests/autopilot/qml_phone_shell/tests/helpers.py 1970-01-01 00:00:00 +0000
3+++ tests/autopilot/qml_phone_shell/tests/helpers.py 2013-03-01 09:12:28 +0000
4@@ -0,0 +1,44 @@
5+# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
6+# Copyright 2013 Canonical
7+#
8+# This program is free software: you can redistribute it and/or modify it
9+# under the terms of the GNU General Public License version 3, as published
10+# by the Free Software Foundation.
11+
12+from testtools.matchers import Equals
13+from autopilot.matchers import Eventually
14+
15+class TestShellHelpers(object):
16+ """Helpers for testing the Shell"""
17+
18+ def unlock_greeter(self):
19+ greeter = self.main_window.get_greeter()
20+ if greeter.multiUser:
21+ login_loader = self.main_window.get_login_loader()
22+ self.assertThat(login_loader.progress, Eventually(Equals(1)))
23+ login_list = self.main_window.get_login_list()
24+ path_view = login_list.get_children_by_type("QQuickPathView")[0]
25+ users = path_view.get_children_by_type("QQuickItem")
26+ for user in users:
27+ try:
28+ user_label = user.get_children_by_type("Label")[0]
29+ if user_label.text == "Guest":
30+ self.pointing_device.move_to_object(user_label)
31+ self.pointing_device.click()
32+ except:
33+ pass
34+
35+ password_field = login_list.get_children_by_type("TextField")[0]
36+ self.pointing_device.move_to_object(password_field)
37+ self.assertThat(password_field.opacity, Eventually(Equals(1)))
38+ self.pointing_device.click()
39+
40+ else:
41+ rect = greeter.globalRect
42+ start_x = rect[0] + rect[2] - 1
43+ start_y = int(rect[1] + rect[3] / 2)
44+ stop_x = int(rect[0] + rect[2] / 2)
45+ stop_y = start_y
46+ self.pointing_device.drag(start_x, start_y, stop_x, stop_y)
47+
48+ self.assertThat(greeter.shown, Eventually(Equals(False)))

Subscribers

People subscribed via source and target branches