Merge lp:~carla-sella/ubuntu-rssreader-app/fixed-tests-for-feed-checkbox into lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk

Proposed by Carla Sella
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 350
Merged at revision: 352
Proposed branch: lp:~carla-sella/ubuntu-rssreader-app/fixed-tests-for-feed-checkbox
Merge into: lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk
Diff against target: 25 lines (+2/-2)
2 files modified
feeds/AppendFeedPage.qml (+1/-1)
tests/autopilot/shorts_app/__init__.py (+1/-1)
To merge this branch: bzr merge lp:~carla-sella/ubuntu-rssreader-app/fixed-tests-for-feed-checkbox
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Roman Shchekin Pending
Nicholas Skaggs Pending
Review via email: mp+245301@code.launchpad.net

Commit message

Autopilot tests for Ubuntu Rssreader App

Description of the change

Fixed broken tests due to introduction of feed checkbox.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Carla Sella (carla-sella) wrote :

This fixes failing of various tests where the checkbox is not beeing selected while adding a new feed.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Awesome. I should have looked through this first. Thanks Carla!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'feeds/AppendFeedPage.qml'
2--- feeds/AppendFeedPage.qml 2014-09-20 10:51:29 +0000
3+++ feeds/AppendFeedPage.qml 2014-12-21 20:59:18 +0000
4@@ -207,7 +207,7 @@
5 control: CheckBox {
6 anchors.verticalCenter: parent.verticalCenter
7
8- objectName: "feedCheckbox"
9+ objectName: "feedCheckbox-" + model.title
10 onCheckedChanged: {
11 searchResultsModel.setProperty(index, "isSelected", checked)
12 if (checked)
13
14=== modified file 'tests/autopilot/shorts_app/__init__.py'
15--- tests/autopilot/shorts_app/__init__.py 2014-12-16 19:51:03 +0000
16+++ tests/autopilot/shorts_app/__init__.py 2014-12-21 20:59:18 +0000
17@@ -359,7 +359,7 @@
18
19 def _check_result(self, result):
20 results_list = self._get_results_list()
21- results_list.click_element('feedpagelistitem-{}'.format(result))
22+ results_list.click_element('feedCheckbox-{}'.format(result))
23
24
25 class ChooseTopicPage(Page):

Subscribers

People subscribed via source and target branches