Closed
Bug 1219682
Opened 9 years ago
Closed 7 years ago
Implement *test_lockscreen_wake_with_notification.py* as an integration test in JavaScript
Categories
(Firefox OS Graveyard :: Gaia::System::Lockscreen, defect)
Tracking
(feature-b2g:2.6+)
RESOLVED
WONTFIX
feature-b2g | 2.6+ |
People
(Reporter: whsu, Unassigned)
References
Details
(Whiteboard: [gip-to-gij])
Attachments
(2 files)
Reporter | ||
Updated•9 years ago
|
Component: Gaia::UI Tests → Gaia::System::Lockscreen
Updated•9 years ago
|
feature-b2g: --- → 2.6+
Comment 1•9 years ago
|
||
Greg, could you fold this into your current working item? Is this already a duplicate? Thanks.
Flags: needinfo?(gweng)
Comment 2•9 years ago
|
||
Updated•9 years ago
|
Assignee: nobody → gweng
Flags: needinfo?(gweng)
Comment 3•9 years ago
|
||
Comment on attachment 8698866 [details] [review]
[gaia] snowmantw:bug1219682 > mozilla-b2g:master
Test result is good on TaskCluster:
https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=894206b2236cac55023a2e63b15f185428250252&selectedJob=3163013
Therefore I set it for review.
Attachment #8698866 -
Flags: review?(timdream)
Updated•9 years ago
|
Attachment #8698866 -
Flags: review?(timdream) → review+
Comment 4•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 5•9 years ago
|
||
Thank you for this new test.
I realized the Python test turns off the screen, so we make sure a new notification actually power up the screen. After injecting this piece of code[1] locally, it seems Mulet doesn't support turning on and off the screen. Do you confirm, Greg?
FWIW, the helper in MJS[2] only exposes screen lock/unlock.
[1] https://github.com/mozilla-b2g/gaia/blob/6e5e0cb1a95de119e93ad897f13b57eca039ce4e/tests/python/gaia-ui-tests/gaiatest/gaia_test.py#L754
[2] https://github.com/mozilla-b2g/gaia/blob/01ffe82cf088ca8fda9fe6783dc5cad2c3dde01c/tests/jsmarionette/helper.js#L27
Flags: needinfo?(gweng)
Comment 6•9 years ago
|
||
Well, I will update the patch with that assertion and set you as the reviewer.
Also, I think the problem is we may need a `device` object as Gip so that we can check and manipulate it without scattering `Service.query` everywhere, and it will also map Gip to Gij more easily. Meanwhile,
Flags: needinfo?(gweng)
Comment 7•9 years ago
|
||
Tim and I listed how much tests we should implement to cover more tests than Gip. So the device helper like that might be helpful.
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
Reopen because I need to update the assertions.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 10•9 years ago
|
||
Comment on attachment 8701304 [details] [review]
[gaia] snowmantw:bug1219682-rev2 > mozilla-b2g:master
Test passed again:
https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=c3d5ade46fe2ae439eb05487f807e772f6dafc9f
So I set the review.
Attachment #8701304 -
Flags: review?(jlorenzo)
Comment 11•9 years ago
|
||
Comment on attachment 8701304 [details] [review]
[gaia] snowmantw:bug1219682-rev2 > mozilla-b2g:master
Even though the test passes, and the Service actually returns the correct value, I don't see the screen turning off on Mulet. Hence, this test might be interpreted as a false positive.
I ran the test on device, it worked there.
I'd add a comment explaining why you don't see screen being turned off on Mulet.
Then, r+ modulo the comment.
Attachment #8701304 -
Flags: review?(jlorenzo) → review+
Updated•8 years ago
|
Assignee: gweng → nobody
Comment 12•7 years ago
|
||
Firefox OS is not being worked on
Status: REOPENED → RESOLVED
Closed: 9 years ago → 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•