ubuntu-touch-coreapps-reviewers team mailing list archive
-
ubuntu-touch-coreapps-reviewers team
-
Mailing list archive
-
Message #04955
[Merge] lp:~nskaggs/ubuntu-clock-app/fix-ap-mainview into lp:ubuntu-clock-app
Nicholas Skaggs has proposed merging lp:~nskaggs/ubuntu-clock-app/fix-ap-mainview into lp:ubuntu-clock-app.
Commit message:
Fix Mainview12 issue
Requested reviews:
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot): continuous-integration
Ubuntu Clock Developers (ubuntu-clock-dev)
Related bugs:
Bug #1490205 in Ubuntu Clock App: "[Autopilot] Fix failing autopilot tests due to MainView12"
https://bugs.launchpad.net/ubuntu-clock-app/+bug/1490205
For more details, see:
https://code.launchpad.net/~nskaggs/ubuntu-clock-app/fix-ap-mainview/+merge/271029
Probably should at least land this change so anyone can work off of it.
--
Your team Ubuntu Clock Developers is requested to review the proposed merge of lp:~nskaggs/ubuntu-clock-app/fix-ap-mainview into lp:ubuntu-clock-app.
=== modified file 'app/ubuntu-clock-app.qml'
--- app/ubuntu-clock-app.qml 2015-08-26 23:35:50 +0000
+++ app/ubuntu-clock-app.qml 2015-09-14 20:53:59 +0000
@@ -30,7 +30,7 @@
property bool applicationState: Qt.application.active
// objectName for functional testing purposes (autopilot-qt5)
- objectName: "clock"
+ objectName: "clockMainView"
// applicationName for click packages (used as an unique app identifier)
applicationName: "com.ubuntu.clock"
=== modified file 'tests/autopilot/ubuntu_clock_app/__init__.py'
--- tests/autopilot/ubuntu_clock_app/__init__.py 2015-06-17 21:03:43 +0000
+++ tests/autopilot/ubuntu_clock_app/__init__.py 2015-09-14 20:53:59 +0000
@@ -49,6 +49,11 @@
class MainView(ubuntuuitoolkit.MainView):
+ # bug 1341671 means AP sees this as MainView12
+ @classmethod
+ def get_type_query_name(cls):
+ return 'MainView12'
+
@autopilot_logging.log_action(logger.info)
def open_clock(self):
"""Open the Clock Page.
@@ -68,7 +73,7 @@
clockPage = self.open_clock()
clockPage.reveal_bottom_edge_page()
self.get_header().visible.wait_for(True)
- return self.wait_select_single(Page11)
+ return self.wait_select_single(AlarmPage)
def get_AlarmList(self):
""" Get the AlarmList object. """
@@ -92,11 +97,12 @@
self.main_view = self.get_root_instance().select_single(MainView)
-class PageWithBottomEdge(MainView):
+class PageWithBottomEdge(Page):
"""
An emulator class that makes it easy to interact with the bottom edge
swipe page
"""
+
def __init__(self, *args):
super(PageWithBottomEdge, self).__init__(*args)
@@ -191,7 +197,7 @@
self.pointing_device.click_object(deleteButton)
-class Page11(Page):
+class AlarmPage(Page):
"""Autopilot helper for the Alarm page."""
@autopilot_logging.log_action(logger.info)
Follow ups