Merge lp:~canonical-platform-qa/ubuntu-system-tests/cleanup-inheritance-with-upstreaming into lp:ubuntu-system-tests

Proposed by Christopher Lee
Status: Work in progress
Proposed branch: lp:~canonical-platform-qa/ubuntu-system-tests/cleanup-inheritance-with-upstreaming
Merge into: lp:ubuntu-system-tests
Diff against target: 74 lines (+0/-54)
2 files modified
ubuntu_sanity_tests/helpers/unity8/dash.py (+0/-45)
ubuntu_sanity_tests/helpers/unityclickscope.py (+0/-9)
To merge this branch: bzr merge lp:~canonical-platform-qa/ubuntu-system-tests/cleanup-inheritance-with-upstreaming
Reviewer Review Type Date Requested Status
platform-qa-bot continuous-integration Needs Fixing
Federico Gimenez (community) Approve
PS Jenkins bot continuous-integration Approve
prod-platform-qa continuous-integration Pending
Review via email: mp+256420@code.launchpad.net

Commit message

Removing inhouse helpers and troublesome multi-inheritance Click CPO.

Description of the change

Removing inhouse helpers and troublesome multi-inheritance Click CPO.
(Req. this unity8 upstream branch to land first: https://code.launchpad.net/~veebers/unity8/adding-extra-helpers-from-sanity/+merge/256419).

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

LGTM

review: Approve
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

When I run this using the packages from the other branches, I get an error about the MainView not being present, and indeed it seems the dash didn't start. Trying to find out why this is - I doubt it's caused by this branch, but needs to be resolved before landing this.

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Note that this is confirmed to be a UITK issue, with the API being changed and breaking unity8-dash

Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

112. By Christopher Lee

Remove kludge multi-inherit ClickScope as all req. are/will be upstream.

111. By Christopher Lee

Clean up Dash method that I've added in an upstream MP.

110. By Christopher Lee

Remove swipe_to_top as I have put it into a MP for upstream (unity8)

109. By Christopher Lee

Remove method that exists in upstrea. Have commented in the upstream MP that they differ slightly.

108. By Christopher Lee

Remove method that exists upstream verbatim

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu_sanity_tests/helpers/unity8/dash.py'
2--- ubuntu_sanity_tests/helpers/unity8/dash.py 2015-04-06 21:55:41 +0000
3+++ ubuntu_sanity_tests/helpers/unity8/dash.py 2015-04-16 03:37:03 +0000
4@@ -19,51 +19,6 @@
5 #
6
7 import ubuntuuitoolkit
8-from unity8.shell.emulators import dash as unity8_dash
9-
10-
11-class Dash(unity8_dash.Dash):
12-
13- def wait_for_processing_to_complete(self):
14- self.select_single(
15- objectName='processingIndicator').visible.wait_for(False)
16-
17-
18-class GenericScopeView(unity8_dash.GenericScopeView):
19-
20- def click_scope_item(self, category, title, press_duration=0.10):
21- category_element = self._get_category_element(category)
22- icon = category_element.wait_select_single(
23- 'AbstractButton', title=title)
24- list_view = self.select_single(
25- ListViewWithPageHeader, objectName='categoryListView')
26- list_view.swipe_child_into_view(icon)
27- self.pointing_device.click_object(icon, press_duration=press_duration)
28-
29- def open_preview(self, category, app_name, press_duration=0.10):
30- """Open the preview of an application.
31-
32- :parameter category: The name of the category where the application is.
33- :parameter app_name: The name of the application.
34- :return: The opened preview.
35-
36- """
37- self.click_scope_item(category, app_name, press_duration)
38- preview_list = self.wait_select_single(
39- 'QQuickLoader', objectName='subPageLoader')
40- preview_list.subPageShown.wait_for(True)
41- preview_list.x.wait_for(0)
42- self.get_root_instance().select_single(
43- objectName='processingIndicator').visible.wait_for(False)
44- return preview_list.select_single(
45- 'Preview', objectName='preview{}'.format(
46- preview_list.initialIndex))
47-
48- def swipe_to_top(self):
49- """Swipe to the top of the scope."""
50- list_view = self.select_single(
51- ListViewWithPageHeader, objectName='categoryListView')
52- list_view.swipe_to_top()
53
54
55 class ListViewWithPageHeader(ubuntuuitoolkit.QQuickListView):
56
57=== modified file 'ubuntu_sanity_tests/helpers/unityclickscope.py'
58--- ubuntu_sanity_tests/helpers/unityclickscope.py 2015-02-25 15:09:04 +0000
59+++ ubuntu_sanity_tests/helpers/unityclickscope.py 2015-04-16 03:37:03 +0000
60@@ -20,15 +20,6 @@
61
62 import unityclickscope
63
64-from ubuntu_sanity_tests.helpers.unity8 import dash
65-
66-
67-class ClickScope(unityclickscope.ClickScope, dash.GenericScopeView):
68-
69- # Just make sure that the click scope inherits the methods we haven't yet
70- # merged into unity8.
71- pass
72-
73
74 class Preview(unityclickscope.Preview):
75

Subscribers

People subscribed via source and target branches

to all changes: