Closed Bug 1406125 Opened 8 years ago Closed 8 years ago

Fxscreengraph does not wait until the element exists

Categories

(Firefox for iOS :: Build & Test, enhancement)

Other
iOS
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios ? ---

People

(Reporter: njpark, Assigned: jhugman)

Details

Attachments

(1 file)

In https://github.com/mozilla-mobile/firefox-ios/blob/master/XCUITests/ScreenGraph.swift#L172, waitForElement() doesn't actually wait apparentely. If the if clause is commented out, the waitForElement should still work - since they should pass the expectation. However, even when the element is visible, this expectation will always fail. Also, increasing timeout has no effect on the waiting duration - it seems to fail instantly all the time. So currently all our FxScreenGraph using tests are susceptible to an intermittent timing issue.
I think only James would know best about how to deal with this issue. ni? requested.
Flags: needinfo?(jhugman)
Assignee: nobody → jhugman
Status: NEW → ASSIGNED
Flags: needinfo?(jhugman)
Comment on attachment 8916013 [details] [review] Link to Github pull-request: https://github.com/mozilla-mobile/firefox-ios/pull/3266 LGTM, with an optional comment
Attachment #8916013 - Flags: review?(npark) → review+
Merged into master.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Uplifted to v10.x ce38a0e
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: