Merge lp:~jonas-drange/ubuntu-system-settings/fix-datetime-test-failure into lp:ubuntu-system-settings

Proposed by Jonas G. Drange
Status: Merged
Approved by: Ken VanDine
Approved revision: 1268
Merged at revision: 1276
Proposed branch: lp:~jonas-drange/ubuntu-system-settings/fix-datetime-test-failure
Merge into: lp:ubuntu-system-settings
Diff against target: 12 lines (+1/-1)
1 file modified
tests/autopilot/ubuntu_system_settings/tests/test_datetime.py (+1/-1)
To merge this branch: bzr merge lp:~jonas-drange/ubuntu-system-settings/fix-datetime-test-failure
Reviewer Review Type Date Requested Status
Ken VanDine Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+247586@code.launchpad.net

Commit message

[ap] avoid use of scroll_to_and_click where the element to be clicked is visible without scrolling

Description of the change

[ap] avoid use of scroll_to_and_click where the element to be clicked is visible without scrolling

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

On Mon, Jan 26, 2015 at 02:00:46PM -0000, Jonas G. Drange wrote:
> Jonas G. Drange has proposed merging lp:~jonas-drange/ubuntu-system-settings/fix-datetime-test-failure into lp:ubuntu-system-settings.
>
> Commit message:
> [ap] avoid use of scroll_to_and_click where the element to be clicked is visible without scrolling

Would be more tolerant to future UI changes or screen sizes etc if
scroll_to_and_click could instead cope with this situation itself, i.e.
not scroll if it doesn't need to.

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/ubuntu_system_settings/tests/test_datetime.py'
2--- tests/autopilot/ubuntu_system_settings/tests/test_datetime.py 2014-12-10 20:47:38 +0000
3+++ tests/autopilot/ubuntu_system_settings/tests/test_datetime.py 2015-01-26 14:00:05 +0000
4@@ -62,7 +62,7 @@
5 raise e
6
7 def click_tz_search_field(self):
8- self.main_view.scroll_to_and_click(self.tz_page)
9+ self.main_view.pointing_device.click_object(self.tz_page)
10 text_field = self.main_view.wait_select_single(
11 objectName='selectTimeZoneField'
12 )

Subscribers

People subscribed via source and target branches