Closed
Bug 1461269
Opened 8 years ago
Closed 8 years ago
XCUITest: Compilation fails after deleting 'closingAllTabs' from FxScreenGraph
Categories
(Firefox for iOS :: Build & Test, defect)
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| fxios | ? | --- |
People
(Reporter: isabel_rios, Unassigned)
Details
Attachments
(1 file)
XCUITests are not running due to a compilation error because the method used by some tests 'closingAllTabs' has been removed.
Garvan, ni you to understand this change in the PR https://github.com/mozilla-mobile/firefox-ios/pull/3917/files
I have read on slack that the closeAllTabs function does not work, but it was working, using the selected button to close all tabs in several tests. In fact, one of these test caught a regression sometime ago with this option...
But I may be missing something and can improve this function or the tests...
| Reporter | ||
Updated•8 years ago
|
Flags: needinfo?(gkeeley)
| Reporter | ||
Comment 1•8 years ago
|
||
Some examples of the tests that used this method:
https://github.com/mozilla-mobile/firefox-ios/blob/master/XCUITests/TopTabsTest.swift#L183
https://github.com/mozilla-mobile/firefox-ios/blob/master/XCUITests/TopTabsTest.swift#L201
https://github.com/mozilla-mobile/firefox-ios/blob/master/XCUITests/TopTabsTest.swift#L221
https://github.com/mozilla-mobile/firefox-ios/blob/master/XCUITests/SiteLoadTest.swift#L10
| Reporter | ||
Comment 2•8 years ago
|
||
Using this bug to fix the compilation error adding an Action that does what the method was implemented for before having the Actions so that the design is better aligned with the FxScreenGraph
| Reporter | ||
Comment 3•8 years ago
|
||
Oops! The `closeAllTabs()` didn't work for me, it didn't look correct at a glance as it wasn't using screengraph to perform the actions, and Xcode reported the `callers` as zero (it lied to me!). I should have been more careful removing it.
Your new approach using screengraph looks much better.
Flags: needinfo?(gkeeley)
| Reporter | ||
Comment 5•8 years ago
|
||
Comment on attachment 8975431 [details]
Pull Request
Tests are green (except for two intermittents managed in different PRs):
https://dashboard.buddybuild.com/apps/57bf25c0f096bc01001e21e0/build/5af97d186f5c2800010163dc
Attachment #8975431 -
Flags: review?(gkeeley)
Attachment #8975431 -
Flags: review?(gkeeley) → review+
| Reporter | ||
Comment 6•8 years ago
|
||
Landed on master: https://github.com/mozilla-mobile/firefox-ios/commit/09bcc9b302969f7eed0696e73e25b9272c386f75
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 7•8 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•