Skip to content

Commit

Permalink
Update locator in test_gallery.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zacc authored and davehunt committed Nov 23, 2012
1 parent c31a3ac commit 25d59fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gaiatest/tests/test_gallery.py
Expand Up @@ -10,7 +10,7 @@ class TestGallery(GaiaTestCase):

_throbber_locator = ('id', 'throbber')
_gallery_items_locator = ('css selector', 'li.thumbnail')
_current_photo = ('css selector', 'div.currentPhoto img[src]')
_current_image_locator = ('css selector', '#frame2 > img')
_photos_toolbar_locator = ('id', 'photos-toolbar')

def setUp(self):
Expand All @@ -29,9 +29,8 @@ def test_gallery_view(self):

self.marionette.find_elements(*self._gallery_items_locator)[0].click()

self.wait_for_element_present(*self._current_photo)
self.assertTrue(
self.marionette.find_element(*self._current_photo).is_displayed())
current_image = self.wait_for_element_present(*self._current_image_locator)
self.assertTrue(current_image.is_displayed())

# TODO
# Add steps to view picture full screen
Expand Down

0 comments on commit 25d59fe

Please sign in to comment.