~chris.gagnon/gallery-app/autopilot-fix-first-photo-in-album-view

« back to all changes in this revision

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

  • Committer: CI bot
  • Author(s): Arthur Mello
  • Date: 2014-05-22 07:43:07 UTC
  • mfrom: (971.1.14 gallery-app-add_photo_ap)
  • Revision ID: ps-jenkins@lists.canonical.com-20140522074307-o73h117sdwph1jig
Change to use PageStack to fix issue with toolbar while activating and deactivating Pages. Fixes: 1319927

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
from gallery_app.emulators import album_editor
18
18
from gallery_app.tests import GalleryTestCase
19
19
 
 
20
from time import sleep
20
21
from unittest import skip
21
22
 
22
23
 
87
88
        self.media_selector.ensure_fully_open()
88
89
 
89
90
        self.main_view.get_toolbar().click_custom_button("cancelButton")
90
 
        self.album_view.ensure_media_selector_is_fully_closed()
 
91
        sleep(1)
91
92
 
92
93
        num_photos = self.album_view.number_of_photos()
93
94
        self.assertThat(num_photos, Equals(num_photos_start))
108
109
        self.main_view.open_toolbar().click_button("addButton")
109
110
        self.ui_update()
110
111
 
111
 
        editor = self.app.select_single(album_editor.AlbumEditorAnimated)
 
112
        editor = self.app.select_single(album_editor.AlbumEditor)
112
113
        editor.ensure_fully_open()
113
114
        self.main_view.close_toolbar()
114
115
        editor.close()