Closed Bug 814037 Opened 12 years ago Closed 12 years ago

is_displayed struggling with transforms

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

Tracking

(firefox23 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)

RESOLVED FIXED
mozilla23
Tracking Status
firefox23 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- fixed

People

(Reporter: mdas, Assigned: automatedtester)

References

Details

Attachments

(3 files)

This problem is seen in the gaia music app. There are two album views whose elements are all un-hidden, but who transform onto the screen. Is_displayed() returns false for all these elements, regardless if they've been transformed into view or not. Example element we're looking for: https://github.com/mozilla-b2g/gaia/blob/ae5bb150ac188aa7ecd653b5276f6139e756e444/apps/music/js/music.js#L432 The css causing the transform is most likely this: https://github.com/mozilla-b2g/gaia/blob/ae5bb150ac188aa7ecd653b5276f6139e756e444/apps/music/style/music.css#L112
Without investigating it further I dont think they are
Severity: normal → major
zac: is this priority still correct since you mentioned when I saw you last week that the test doesn't use the approach at the moment
Yes, it's not affecting that test anymore so the priortiy can be lowered.
dropping priority as per zac's comment
Severity: major → normal
Hardware: x86 → All
I have tried to replicate the issue and I can't :( In the Music app I have 1 mp3 on the device and do the following elem = self.marionette.find_element('css selector', '.tile-title-album') elem.is_displayed() When I have the screen at (http://pastebin.mozilla.org/2046102 paste pastebin contents to urlbar) then is_displayed() is returning True. On the other parts of the app it is returning False which is what I would expect. If someone can give me an example of where it not doing the right thing, ideally with an example script, then I have will have a look again
Assignee: dburns → nobody
I'm happy with the result of David's recent testing. If we stumble upon another bug we can reopen this or raise a new one.
I mean I'm happy with the result with regard to how it affects the smoke test work.
It sounds like we can close this bug. Please reopen if this issue reoccurs.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
This (or at least this test case) has regressed and we can't run the music test anymore. Every element inside the music app after the transform has occurred is returning displayed false. The element appears to be off the screen, perhaps not taking into account the translateX/transform. {u'y': 76, u'x': 320} {u'width': 320, u'height': 60} The source of the issue might be from this commit into the music app: https://github.com/mozilla-b2g/gaia/commit/e13ac837676251c9a96e651fa29dfa09f0b6b3c9
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Assignee: nobody → dburns
Attached file test case html
zac kindly created this html test case to show the issue
try is green \o/
Attachment #733298 - Flags: review?(mdas) → review+
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: