Closed
Bug 1429733
Opened 7 years ago
Closed 7 years ago
Adapt iPad XCUITests: Close Tab option removed from PageActionMenu
Categories
(Firefox for iOS :: Build & Test, enhancement)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fxios | + | --- |
People
(Reporter: isabel_rios, Unassigned)
References
Details
Attachments
(1 file)
Please see bug 1427911
There are some tests using that option not only for that specific test but for navigating to different menus and so they have to be modified/disabled depending on the case for the iPad tests.
For example, some failing tests:
https://github.com/mozilla-mobile/firefox-ios/blob/master/XCUITests/ActivityStreamTest.swift#L92
https://github.com/mozilla-mobile/firefox-ios/blob/master/XCUITests/ActivityStreamTest.swift#L106
Reporter | ||
Comment 1•7 years ago
|
||
In theory there are 9 tests affected with error:
Cannot get from PageOptionsMenu to CloseTabFromPageOptions. See /../FxScreenGraph.swift:758
-Activity Stream tests
testTopSitesRemoveAllExceptDefaultClearPrivateData()
testTopSitesRemoveAllExceptPinnedClearPrivateData()
-Private Browser tests
testiPadDirectAccessPrivateMode()
-Reading View tests
testAddToReadingList()
testAddToReadingListPrivateMode()
testRemoveFromReadingView()
testMarkAsReadAndUnreadFromReadingList()
testRemoveFromReadingList()
-Top Tabs tests
testCloseTabFromPageOptionsMenu()
Those are important tests that it will be better to not to disable so we will look for a solution if possible a general one in FxScreenGraph, if that is not possible then each test will be modified accordingly.
Reporter | ||
Comment 2•7 years ago
|
||
Looks like there is a solution that fixes all the tests. On FxScreenGraph L#758 adding if: "tablet != true" fixes 8 out of the 9 tests.
That remaining test would not make sense for iPad and could be disabled:
-Top Tabs tests
testCloseTabFromPageOptionsMenu()
Anyway, lets see when bug 1427911 lands if there are more changes...
Reporter | ||
Comment 3•7 years ago
|
||
Attachment #8942244 -
Flags: review?(npark)
Reporter | ||
Comment 4•7 years ago
|
||
New tests are also affected:
-BrowisngPDF tests
testBookmarkPDF()
testLongPressOnPDFLinkToAddToReadingList()
Comment 5•7 years ago
|
||
Does this PR also fix BrowsingPDF tests?
Comment 6•7 years ago
|
||
Comment on attachment 8942244 [details] [review]
Pull Request
looks okay to me, let us know whether this also covers the PDF tests
Attachment #8942244 -
Flags: review?(npark) → review+
Reporter | ||
Comment 7•7 years ago
|
||
Those two tests on comment #4 yes, they are fixed with this PR. They fail due to the same error than the other tests: Cannot get from PageOptionsMenu to CloseTabFromPageOptions.
For fixing the third BrowsingPDF test: testPinPDFtoTopSites() there is a different bug 1430537
Reporter | ||
Comment 8•7 years ago
|
||
Merged: https://github.com/mozilla-mobile/firefox-ios/commit/878238d182900690aa56f98254b5850a9c5e983d
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
•