Closed Bug 908595 Opened 12 years ago Closed 12 years ago

[marionette-helper] waitForElement function should wait for the element appended in the DOM.

Categories

(Testing Graveyard :: JSMarionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: evanxd, Assigned: evanxd)

References

Details

Attachments

(1 file)

We might also use the waitForElement function for waiting the element appended in the DOM and then displayed in the screen. This situation is happened in the Bug 900894, and it make some issues in the CI. We could see the issue in https://travis-ci.org/mozilla-b2g/gaia/builds/10525606#L137.
Hi Gaye, Could you add me as owner of marionette-js-helper and marionette-client. Then I could update some modules for fixing the Bug 900894. Thanks. :)
Flags: needinfo?(gaye)
Evan what is your npm username? I Will add you to the client now.
Looks like your already on marionette-js-helper and I just added you to the client.
Flags: needinfo?(gaye)
Hi James, Sorry, I think that I'm not on marionette-js-helper. I created marionette-helper(https://npmjs.org/package/marionette-helper) by my own for testing. They are different.
Hi Gaye, Sorry for that I already merged this patch https://github.com/mozilla-b2g/marionette-helper/commit/911490841483d835f6c563291f38e45f3a6e446f into marionette-helper without your review. I just would like to fix Bug 900894 faster. But then I found out that I'm NOT a maintainer of marionette-js-helper in npm. And I could not update the module for fixing Bug 900894. So could you help me that let me be a maintainer of it in npm? Thanks.
Flags: needinfo?(gaye)
Hi Gaye, We already changed the module name for marionette-helper in NPM, and we updated the change in gaia https://github.com/mozilla-b2g/gaia/blob/master/shared/test/integration/setup.js#L3. And you're also a maintainer of https://npmjs.org/package/marionette-helper. Thanks. :)
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(gaye)
Resolution: --- → FIXED
Attached file Pull request
Followup patch
Attachment #799416 - Flags: review?(evanxd)
Attachment #799416 - Attachment mime type: text/plain → text/html
Hi Gareth, In your patch, how do we handle the below situation? We would like to wait for a element is appended in the DOM and showed in the screen? waitForElement function will not work when the element isn't in DOM yet. But I think we should wait for it appended in DOM. How do you think?
Attachment #799416 - Flags: review?(evanxd) → review+
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: