Closed Bug 1416290 Opened 7 years ago Closed 7 years ago

Update iPad XCUITest to new FxScreenGraph

Categories

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

Other
iOS
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios + ---

People

(Reporter: isabel_rios, Unassigned)

References

Details

Attachments

(1 file)

55 bytes, text/x-github-pull-request
jhugman
: review+
Details | Review
There are some tests failing only on iPad simulator becuase it is not possible to route from one screen to a different one, for example: ReaderViewTests: - testAddToReadingList(): Cannot route from HomePanel.ReadingList.3 to BrowserTab SearchTests: - testCopyPasteComplete(): Cannot route from HomePanels to URLBarOpen There are a few more failing due to routes only in iPad not in iPhone. Seems like somehow for iPad we are missing some checks for the correct routing
After investigating this issue, it seems that this check for the iPad case is not working totally fine: https://github.com/mozilla-mobile/firefox-ios/blob/master/XCUITests/FxScreenGraph.swift#L310 Would you be fine if we change that part doing this: if isTablet { screenState.tap(app.buttons["TopTabsViewController.tabsButton"], to: TabTray) } else { screenState.gesture(to: TabTray) { if (app.buttons["TabToolbar.tabsButton"].exists) { app.buttons["TabToolbar.tabsButton"].tap() } else { app.buttons["URLBarView.tabsButton"].tap() } } } The failing tests are working this way, but not sure if that is correct with the new FxScreenGraph and the consistency of it. Please let me know your thoughts, thanks!
Flags: needinfo?(jhugman)
You've exposed a bug — in its current form, each pair of nodes can only have one edge between them, so multiple edges overwrite one another. I've filed Bug 1417522 to track if this becomes more of a problem — please add more examples to that bug to build some more usecases. The workaround is to do as you've done.
Flags: needinfo?(jhugman)
Attached file Pull Request
Tests affected by the routing are now passing, this error is not shown... https://dashboard.buddybuild.com/apps/57bf25c0f096bc01001e21e0/build/5a0d61616e193700010185bb#tests (The failures are due to other bugs being worked on or under investigation)
Attachment #8928961 - Flags: review?(jhugman)
Comment on attachment 8928961 [details] [review] Pull Request LGTM
Attachment #8928961 - Flags: review?(jhugman) → review+
Status: NEW → RESOLVED
Closed: 7 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: