Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update locator in test_gallery.py

  • Loading branch information...
commit 25d59feb2c490558fc86930aeb4d6a0652be50ed 1 parent c31a3ac
@zacc zacc authored davehunt committed
Showing with 3 additions and 4 deletions.
  1. +3 −4 gaiatest/tests/test_gallery.py
View
7 gaiatest/tests/test_gallery.py
@@ -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):
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.