Closed
Bug 1416290
Opened 7 years ago
Closed 7 years ago
Update iPad XCUITest to new FxScreenGraph
Categories
(Firefox for iOS :: Build & Test, enhancement)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fxios | + | --- |
People
(Reporter: isabel_rios, Unassigned)
References
Details
Attachments
(1 file)
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
Updated•7 years ago
|
Reporter | ||
Comment 1•7 years ago
|
||
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)
Comment 2•7 years ago
|
||
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)
Reporter | ||
Comment 3•7 years ago
|
||
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 4•7 years ago
|
||
Comment on attachment 8928961 [details] [review]
Pull Request
LGTM
Attachment #8928961 -
Flags: review?(jhugman) → review+
Reporter | ||
Comment 5•7 years ago
|
||
Merged: https://github.com/mozilla-mobile/firefox-ios/commit/c73fb8c20b5f00f40ad6c19c1dbc24e6ec1992f7
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.
Description
•