Merge lp:~nskaggs/ubuntu-rssreader-app/ap-tweaks-force-build into lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk

Proposed by Nicholas Skaggs
Status: Superseded
Proposed branch: lp:~nskaggs/ubuntu-rssreader-app/ap-tweaks-force-build
Merge into: lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk
Diff against target: 129 lines (+27/-26)
2 files modified
tests/autopilot/ubuntu_rssreader_app/emulators.py (+6/-0)
tests/autopilot/ubuntu_rssreader_app/tests/test_rssreader.py (+21/-26)
To merge this branch: bzr merge lp:~nskaggs/ubuntu-rssreader-app/ap-tweaks-force-build
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Ubuntu Shorts Developers Pending
Review via email: mp+180003@code.launchpad.net

This proposal has been superseded by a proposal from 2013-08-13.

Commit message

Tweak autopilot tests, force new build into ppa

Description of the change

Tweak autopilot tests, force new build into ppa

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
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)
39. By Nicholas Skaggs

fix lambda nonsense, change notequals(none) to not(is(none))

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/ubuntu_rssreader_app/emulators.py'
2--- tests/autopilot/ubuntu_rssreader_app/emulators.py 2013-08-13 04:46:19 +0000
3+++ tests/autopilot/ubuntu_rssreader_app/emulators.py 2013-08-13 21:03:36 +0000
4@@ -35,6 +35,12 @@
5 def get_append_page(self):
6 return self.select_single("AppendFeedPage", objectName = "appendfeedpage")
7
8+ def get_feedlist_page(self):
9+ return self.select_single("FeedListPage", objectName = "feedlistpage")
10+
11+ def get_articlelist_page(self):
12+ return self.select_single("ArticleListPage", objectName = "articlelistpage")
13+
14 def get_feed_management_page(self):
15 return self.select_single("TopicManagement", objectName = "topicmanagement")
16
17
18=== modified file 'tests/autopilot/ubuntu_rssreader_app/tests/test_rssreader.py'
19--- tests/autopilot/ubuntu_rssreader_app/tests/test_rssreader.py 2013-08-13 04:46:19 +0000
20+++ tests/autopilot/ubuntu_rssreader_app/tests/test_rssreader.py 2013-08-13 21:03:36 +0000
21@@ -58,6 +58,7 @@
22
23 #check that feed is updated, not empty
24 canonicalFeed = self.main_view.get_canonical_feed_labelvisual()
25+ self.assertThat(lambda: canonicalFeed, Eventually(NotEquals(None)))
26 self.assertThat(lambda: canonicalFeed.text, Eventually(Equals("Canonical")))
27
28 #click on checkbox to confirm feed
29@@ -228,25 +229,23 @@
30 #remove added Canonical feed
31 self._remove_feed()
32
33- @unittest.skip("Topic page broken")
34+ @unittest.skip("Topic page broken, see https://bugs.launchpad.net/ubuntu-rssreader-app/+bug/1206248")
35 def test_view_feeds(self):
36 """test view feeds"""
37
38- #this has NOT BEEN converted to the sdk, and needs to be done before activating
39-
40 #verify we are on the first page
41 self.main_view.switch_to_tab_by_index(0)
42 self.assertThat(lambda: shortsPage.visible, Eventually(Equals(True)))
43
44 #-----> view all news:
45 #open toolbar
46- self.main_view.open_toolbar()
47+ toolbar = self.main_view.open_toolbar()
48
49 #click on add reads toolbar button
50- self.main_view.click_toolbar_button("List view")
51+ toolbar.click_button("List view")
52
53 #verify we are on the Feeds page
54- feedlistpage = self.main_view.get_object("FeedListPage", "feedlistpage")
55+ feedlistpage = self.main_view.get_feedlist_page()
56 self.assertThat(lambda: feedlistpage.visible, Eventually(Equals(True)))
57
58 #select All articles
59@@ -255,19 +254,17 @@
60 self.pointing_device.click_object(allFeeds )
61
62 #verify we are on the All articles page
63- articlelistpage = self.main_view.get_object("ArticleListPage", "articlelistpage")
64+ articlelistpage = self.main_view.get_articlelist_page()
65 self.assertThat(lambda: articlelistpage.visible, Eventually(Equals(True)))
66
67- #toggle toolbar
68- self.main_view.open_toolbar()
69- self.assertThat(self.main_view.get_toolbar().opened, Eventually(Equals(True)))
70+ toolbar = self.main_view.open_toolbar()
71
72 #click on back toolbar button
73- self.main_view.click_toolbar_button("Back")
74+ toolbar.click_button("Back")
75
76 #verify we are on the Feeds page
77- feedlistpage = self.main_view.get_object("FeedListPage", "feedlistpage")
78- self.assertThat(feedlistpage.title, Eventually(Equals("Feeds")))
79+ feedlistpage = self.main_view.get_feedlist_page()
80+ self.assertThat(lambda: feedlistpage.visible, Eventually(Equals(True)))
81
82 #-----> view individual feed:
83 #add topic and feed
84@@ -275,34 +272,32 @@
85
86 #select Canonical feed
87 canonicalFeed = self.main_view.get_canonical_feed_labelvisual()
88- self.assertThat(canonicalFeed, NotEquals(None))
89+ self.assertThat(lambda: canonicalFeed, Eventually(NotEquals(None)))
90 self.pointing_device.click_object(canonicalFeed)
91
92 #verify we are on the Canonical page
93 header = self.main_view.get_header()[0]
94- self.assertThat(header.title, Eventually(Equals("Canonical")))
95+ self.assertThat(lambda: header.title, Eventually(Equals("Canonical")))
96
97 #toggle toolbar
98- self.main_view.open_toolbar()
99- self.assertThat(self.main_view.get_toolbar().opened, Eventually(Equals(True)))
100+ toolbar = self.main_view.open_toolbar()
101
102 #click on back toolbar button
103- self.main_view.click_toolbar_button("Back")
104+ toolbar.click_button("Back")
105
106 #verify we are on the Feeds page
107- feedlistpage = self.main_view.get_object("FeedListPage", "feedlistpage")
108- self.assertThat(feedlistpage.title, Eventually(Equals("Feeds")))
109+ feedlistpage = self.main_view.get_feedlist_page()
110+ self.assertThat(lambda: feedlistpage.visible, Eventually(Equals(True)))
111
112 #toggle toolbar
113- self.main_view.open_toolbar()
114- self.assertThat(self.main_view.get_toolbar().opened, Eventually(Equals(True)))
115+ toolbar = self.main_view.open_toolbar()
116
117- #click on back toolbar button
118- self.main_view.click_toolbar_button("Shorts")
119+ #click on shorts toolbar button
120+ toolbar.click_button("shorts")
121
122 #verify we are on the Shorts page
123- pageName = self.main_view.get_object("Tab", "Tab0")
124- self.assertThat(pageName.title, Eventually(Equals("Shorts")))
125+ self.main_view.switch_to_tab_by_index(0)
126+ self.assertThat(lambda: shortsPage.visible, Eventually(Equals(True)))
127
128 #remove added Canonical topic
129 self._remove_topic()

Subscribers

People subscribed via source and target branches