Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #16089 from viorelaioia/bug_968737
Browse files Browse the repository at this point in the history
Bug 968737 - Update test_unlock_to_camera_with_passcode to take a picture
  • Loading branch information
Zac committed Feb 10, 2014
2 parents 3b0bc1c + 082ab92 commit eb3ed85
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -34,9 +34,13 @@ def test_unlock_to_camera_with_passcode(self):
self.assertTrue(self.device.is_locked)

camera.switch_to_camera_frame()
camera.take_photo()

self.assertFalse(camera.is_gallery_button_visible)
# Check that Filmstrip is visible
self.assertTrue(camera.is_filmstrip_visible)

camera.tap_switch_source()
# Check that picture saved to SD cards
self.wait_for_condition(lambda m: len(self.data_layer.picture_files) == 1)
self.assertEqual(len(self.data_layer.picture_files), 1)

self.assertFalse(camera.is_gallery_button_visible)

0 comments on commit eb3ed85

Please sign in to comment.