Closed Bug 944274 Opened 12 years ago Closed 12 years ago

The self.lockscreen.is_locked is True when user unlock from lockscreen to camera with passcode

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v1.2 fixed)

RESOLVED FIXED
Tracking Status
b2g-v1.2 --- fixed

People

(Reporter: askeing, Assigned: askeing)

References

Details

Attachments

(2 files)

After have the discussion with Tim, the self.lockscreen.is_locked is True when user unlock from lockscreen to camera with passcode. Becasue this camera is system's camera, and the lockscreen still be locked. gaiatest/gaia_test.py: @property def is_locked(self): self.marionette.switch_to_frame() return self.marionette.execute_script('return window.wrappedJSObject.LockScreen.locked') gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py: camera = self.lock_screen.unlock_to_camera() self.lock_screen.wait_for_lockscreen_not_visible() self.assertFalse(self.lockscreen.is_locked)
Attached file PR 14164
Attachment #8339783 - Flags: review?(zcampbell)
Attachment #8339783 - Flags: review?(bob.silverberg)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Status: RESOLVED → UNCONFIRMED
Ever confirmed: false
Resolution: FIXED → ---
Attachment #8339783 - Flags: review?(zcampbell)
Attachment #8339783 - Flags: review?(bob.silverberg)
Attachment #8339783 - Flags: review+
Assignee: nobody → fyen
Askeing, please take a look at bug 944692, which proposes a different solution. Which makes the most sense?
Flags: needinfo?(fyen)
Hmm, I think it is a trade off. We can keep the assertion to make sure the value should be True after unlock to camera with passcode. Or we can remove the assertion to only focus on UI. If we only want to focus on UI, I will suggest to remove it.
Flags: needinfo?(fyen)
I agree with Tim that it is still locked. After Alive merges his AppWindowManager pull I plan to try to change this to focus on the UI (camera frame) being the active one so a short term fix here is fine. This came around because the is_locked property never actually worked but Dave fixed it the other day.
Attachment #8343061 - Flags: review?(trifandreialin)
Attachment #8343061 - Flags: review?(bob.silverberg)
Attachment #8343061 - Flags: review?(andrei.hutusoru)
Attachment #8343061 - Flags: review?(trifandreialin) → review+
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Attachment #8343061 - Flags: review?(bob.silverberg)
Attachment #8343061 - Flags: review?(andrei.hutusoru)
Attachment #8343061 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: