Closed
Bug 979234
Opened 11 years ago
Closed 11 years ago
[Camera] [Madai] Fix integration tests
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dmarcos, Assigned: dmarcos)
References
Details
Attachments
(3 files, 3 obsolete files)
The commit below broke the integration tests:
Bug 974119 - [Camera][Madai] 1.4 Viewfinder size and alignment
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
I need a second pair of eyes here. I still don't understand what's going on. I attach a dumb patch that fixes the issue just for investigation purposes. Python marionnette is still opaque to me.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → dmarcos
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(wilsonpage)
Flags: needinfo?(jdarcangelo)
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8385259 -
Attachment is obsolete: true
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8385260 -
Attachment is obsolete: true
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8385261 -
Attachment is obsolete: true
Comment 6•11 years ago
|
||
In my opinion, the test should be fixed to recognize the updated DOM, not the other way around. To do that, the CSS selectors at the top of this file need to be fixed:
https://github.com/dmarcos/gaia/blob/508a9d8057c09394ee3f6ecba5b554119eb3ebda/tests/python/gaia-ui-tests/gaiatest/apps/camera/app.py
Flags: needinfo?(jdarcangelo)
Assignee | ||
Comment 7•11 years ago
|
||
The patch is not meant to fix the issue is just an exercise to understand what's going on. I don't understand why with the old DOM the integration tests break and with the DOM in the patch the tests pass. It doesn't make any sense to me. I already spent too much time and I'm asking for help to diagnose the issue
Comment 8•11 years ago
|
||
Its because the tests (in app.py in my previous comment) use the CSS selectors `.test-gallery`, `.test-capture`, and `.test-switch`. Without your patch, those 3 buttons no longer have those CSS classes and therefore the Python tests cannot find them.
Assignee | ||
Comment 9•11 years ago
|
||
It's not only the CSS selectors. Try the patch removing the changes in the view/viewfinder.js and see
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #8385529 -
Flags: review?(jdarcangelo)
Updated•11 years ago
|
Attachment #8385529 -
Flags: review?(jdarcangelo) → review+
Flags: needinfo?(wilsonpage)
Assignee | ||
Comment 11•11 years ago
|
||
Landed in camera dev
Assignee | ||
Comment 12•11 years ago
|
||
Attachment #8385851 -
Flags: review?(dflanagan)
Comment 13•11 years ago
|
||
Comment on attachment 8385851 [details] [review]
pull-request (camera-new-features)
The integration test changes look good to me. Assuming they all pass, please land.
Attachment #8385851 -
Flags: review?(dflanagan) → review+
Comment 14•11 years ago
|
||
I believe that Diego will land the integration tests changes as part of the "mega patch" in bug 980599.
Assignee | ||
Comment 15•11 years ago
|
||
Landed in camera new features as part of bug 980599
https://github.com/mozilla-b2g/gaia/commit/cab07100493b2b2970eaa61f9460a5375996e122
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•