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

« back to all changes in this revision

Viewing changes to tests/autopilot/gallery_app/tests/test_picker_mode.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
28
28
 
29
29
    def select_first_event_media(self):
30
30
        first_media = self.picker_view.first_media_in_events_view()
31
 
        self.click_item(first_media)
 
31
        checkbox = first_media.select_single(objectName="selectionCheckbox")
 
32
        self.click_item(checkbox)
32
33
 
33
34
    def select_first_grid_media(self):
34
35
        first_media = self.picker_view.first_media_in_events_view()
71
72
        # create the image location path based on sample location
72
73
        image_path = 'image://thumbnailer/{}/sample02.jpg'.format(
73
74
            self.sample_destination_dir)
74
 
        photos_page.click_named_photo(image_path)
 
75
        photos_page.select_named_photo(image_path)
75
76
        self.assertThat(pick_button.enabled, Eventually(Equals(True)))
76
77
        self.picker_view.click_pick_button()
77
78