From 082ab9248d22e787b6b2dbb98f302568ac0f926e Mon Sep 17 00:00:00 2001 From: Viorela Ioia Date: Fri, 7 Feb 2014 17:43:05 +0200 Subject: [PATCH] Bug 968737 - Update test_unlock_to_camera_with_passcode to take a picture --- .../test_lockscreen_unlock_to_camera_with_passcode.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py b/tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py index b7e37ca0e31e..f7e216243026 100644 --- a/tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py +++ b/tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py @@ -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)