~ubuntu-branches/ubuntu/wily/gallery-app/wily

« back to all changes in this revision

Viewing changes to tests/autopilot/gallery_app/tests/test_album_view.py

  • Committer: Package Import Robot
  • Author(s): CI Train Bot, Olivier Tilloy
  • Date: 2015-02-17 12:29:27 UTC
  • mfrom: (1.1.91)
  • Revision ID: package-import@ubuntu.com-20150217122927-tmsg8cb8c2oo5ypr
Tags: 0.0.67+15.04.20150217-0ubuntu1
[ Olivier Tilloy ]
Fix failing autopilot tests that were broken by the changes
introduced at revision 1143 (fix for bug #1416043). (LP: #1416043)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2
 
# Copyright 2013 Canonical
 
2
# Copyright 2013-2015 Canonical
3
3
#
4
4
# This program is free software: you can redistribute it and/or modify it
5
5
# under the terms of the GNU General Public License version 3, as published
84
84
        # should click away of any photo to toggle header
85
85
        photo = self.album_view.get_first_photo()
86
86
        x, y, w, h = photo.globalRect
87
 
        self.pointing_device.move(x + 40 , y + h + 40)
 
87
        self.pointing_device.move(x + 40, y + h + 40)
88
88
        self.pointing_device.click()
89
89
 
90
90
        # open media selector but cancel
102
102
        self.media_selector.ensure_fully_open()
103
103
 
104
104
        photo = self.media_selector.get_second_photo()
105
 
        self.click_item(photo)
 
105
        checkbox = photo.select_single(objectName="selectionCheckbox")
 
106
        self.click_item(checkbox)
106
107
        self.main_view.get_header().click_action_button("addButton")
107
108
 
108
109
        self.assertThat(
193
194
        self.media_selector.ensure_fully_open()
194
195
 
195
196
        photo = self.media_selector.get_second_photo()
196
 
        self.click_item(photo)
 
197
        checkbox = photo.select_single(objectName="selectionCheckbox")
 
198
        self.click_item(checkbox)
197
199
        self.main_view.get_header().click_action_button("addButton")
198
200
 
199
201
        self.open_first_album()