Closed Bug 979234 Opened 11 years ago Closed 11 years ago

[Camera] [Madai] Fix integration tests

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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
Attached file Link to dumb for investigation (obsolete) —
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: nobody → dmarcos
Flags: needinfo?(wilsonpage)
Flags: needinfo?(jdarcangelo)
Attachment #8385259 - Attachment is obsolete: true
Attachment #8385260 - Attachment is obsolete: true
Attachment #8385261 - Attachment is obsolete: true
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)
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
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.
It's not only the CSS selectors. Try the patch removing the changes in the view/viewfinder.js and see
Attached file Pull Request
Attachment #8385529 - Flags: review?(jdarcangelo)
Attachment #8385529 - Flags: review?(jdarcangelo) → review+
Flags: needinfo?(wilsonpage)
Landed in camera dev
Blocks: 974119
Attachment #8385851 - Flags: review?(dflanagan)
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+
I believe that Diego will land the integration tests changes as part of the "mega patch" in bug 980599.
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.

Attachment

General

Created:
Updated:
Size: