Closed Bug 1219627 Opened 9 years ago Closed 9 years ago

Implement *test_browser_play_video.py* as an integration test in JavaScript

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(feature-b2g:2.6+)

RESOLVED FIXED
2.6 S3 - 12/18
feature-b2g 2.6+

People

(Reporter: whsu, Assigned: apastor)

References

Details

(Whiteboard: [gip-to-gij][systemsfe])

Attachments

(1 file)

Component: Gaia::UI Tests → Gaia::Browser
feature-b2g: --- → 2.6+
Assignee: nobody → apastor
Target Milestone: --- → 2.6 S3 - 12/18
Whiteboard: [gip-to-gij] → [gip-to-gij][systemsfe]
Martijn, do you know if we can execute things like [1] in our JS marionette client? I tried with the same .executeScript method and doesn't seem to work. Do you know who can help with this? Thanks! [1] https://github.com/mozilla-b2g/gaia/blob/master/tests/python/gaia-ui-tests/gaiatest/apps/search/regions/html5_player.py#L73
Flags: needinfo?(martijn.martijn)
Weird that it doesn't work. It can be tricky, because of native anonymous content and shadow dom here. I could take a look at it next week (currently on vacation).
Alberto, could you perhaps attach a pull request/patch of what you have thus far, then I'll try and see if I can get it working.
Flags: needinfo?(apastor)
This is what I got so far -> https://github.com/albertopq/gaia/tree/1219627-video-test Is just trying to execute a simple method for getting the location of one of the shadow dom elements, and wanted to make sure this is supported in the js client before spending too much time on it. Let me know if I can help with something! Thanks!
Flags: needinfo?(apastor)
Attachment #8700963 - Flags: review?(martijn.martijn)
I've rebased this commit and ran the CI tests [1], everything is looking green. I'm going to do the review myself and merge. If Martijn has further comments about this test let's fix this in a followup. 1.) https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=332d1f6024386b9080d6b1458f1c90ae18214c30
Attachment #8700963 - Flags: review?(martijn.martijn) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
I'm sorry, I don't understand MarionetteJS enough to give meaningful comments to the code. It all seems weird to me in general.
Flags: needinfo?(martijn.martijn)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: