Closed
Bug 1176349
Opened 9 years ago
Closed 9 years ago
/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py requires proper check for unlock
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: njpark, Assigned: njpark)
References
Details
Attachments
(1 file)
Currently, remains of the Bug 1123325 is causing /lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py to fail unlocking lockscreen.
Yet the script is reported to be passing. It needs lock_screen.wait_for_lockscreen_not_visible() as well as self.wait_for_condition(lambda m: self.apps.displayed_app.name == homescreen.name) at the end.
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
Ideally, this should be merged when 1123325 is fixed.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → npark
Assignee | ||
Updated•9 years ago
|
Attachment #8624873 -
Flags: review?(martijn.martijn)
Attachment #8624873 -
Flags: review?(jlorenzo)
Comment 3•9 years ago
|
||
Comment on attachment 8624873 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/30678
If this works, then that's great.
I'm just wondering, wouldn't it be better to put these Waits in the app object's functions? http://mxr.mozilla.org/gaia/source/tests/python/gaia-ui-tests/gaiatest/apps/lockscreen/app.py
Attachment #8624873 -
Flags: review?(martijn.martijn) → review+
Comment on attachment 8624873 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/30678
Agreed with Martijn, we might use lockscreen.wait_for_lockscreen_not_visible() which would likely do the wait. As it's a method within LockScreen, we can add these waits in all the unlock methods. What do you think No-Jun?
Attachment #8624873 -
Flags: review?(jlorenzo)
Assignee | ||
Updated•9 years ago
|
Attachment #8624873 -
Flags: review?(martijn.martijn)
Attachment #8624873 -
Flags: review?(jlorenzo)
Attachment #8624873 -
Flags: review+
Comment on attachment 8624873 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/30678
One small nit. Apart from that, LGTM!
Attachment #8624873 -
Flags: review?(jlorenzo) → review+
Comment 6•9 years ago
|
||
I get merge conflicts when trying to import this pull request, could you perhaps merge it to the latest master?
Flags: needinfo?(npark)
Comment 7•9 years ago
|
||
Oh wait, this depends on the bug 1123325 fix? Shouldn't this be part as the updated pull request for bug 1123325 then, since that original pull request also tried to fix these tests.
Assignee | ||
Comment 8•9 years ago
|
||
(In reply to Martijn Wargers [:mwargers] (QA) from comment #7)
> Oh wait, this depends on the bug 1123325 fix? Shouldn't this be part as the
> updated pull request for bug 1123325 then, since that original pull request
> also tried to fix these tests.
Yes per comment 2, ideally this should be merged to master after Bug 1123325 is fixed. So I'm planning to merge it once Bug 1123325 is resolved. they are technically different bugs, since the problem fixed by this pull request have existed before bug 1123325.
Flags: needinfo?(npark)
Comment 9•9 years ago
|
||
Comment on attachment 8624873 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/30678
Ok, fine by me then. The changes look fine by me. I would like to have run the tests myself, but I guess I would have to apply the pull request from 1123325, but that doesn't apply for me locally well, at all, so I guess I'm just giving an r+ like this.
Attachment #8624873 -
Flags: review?(martijn.martijn) → review+
Assignee | ||
Comment 10•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•