7 files changed +6
-34
lines changed Original file line number Diff line number Diff line change 27
27
"ActivityStreamTest\/testContextMenuInLandscape()",
28
28
"ActivityStreamTest\/testLongTapOnTopSiteOptions()",
29
29
"ActivityStreamTest\/testShortcutsToggle()",
30
+ "ActivityStreamTest\/testSiteCanBeAddedToShortcuts()",
30
31
"ActivityStreamTest\/testTopSites2Add()",
31
32
"ActivityStreamTest\/testTopSitesRemoveAllExceptDefaultClearPrivateData()",
32
33
"ActivityStreamTest\/testTopSitesRemoveAllExceptPinnedClearPrivateData()",
Original file line number Diff line number Diff line change @@ -192,8 +192,6 @@ class ActivityStreamTest: BaseTestCase {
192
192
app. collectionViews [ " FxCollectionView " ] . links [ defaultTopSite [ " bookmarkLabel " ] !] . press ( forDuration: 1 )
193
193
selectOptionFromContextMenu ( option: " Open in a Private Tab " )
194
194
// Check that two tabs are open and one of them is the default top site one
195
- // Workaround needed after xcode 11.3 update Issue 5937
196
- sleep ( 3 )
197
195
navigator. nowAt ( HomePanelsScreen)
198
196
waitForTabsButton ( )
199
197
navigator. toggleOn ( userState. isPrivate, withAction: Action . TogglePrivateMode)
@@ -253,7 +251,7 @@ class ActivityStreamTest: BaseTestCase {
253
251
}
254
252
255
253
// https://mozilla.testrail.io/index.php?/cases/view/2855325
256
- func testsiteCanBeAddedToShortcuts ( ) {
254
+ func testSiteCanBeAddedToShortcuts ( ) {
257
255
addWebsiteToShortcut ( website: url_3)
258
256
let itemCell = app. links [ AccessibilityIdentifiers . FirefoxHomepage. TopSites. itemCell]
259
257
let cell = itemCell. staticTexts [ " Example Domain " ]
Original file line number Diff line number Diff line change @@ -139,9 +139,7 @@ class DesktopModeTestsIphone: IphoneOnlyTestCase {
139
139
navigator. nowAt ( BrowserTab)
140
140
navigator. toggleOn ( userState. isPrivate, withAction: Action . TogglePrivateMode)
141
141
navigator. openURL ( path ( forTestPage: " test-user-agent.html " ) )
142
- // Workaround to be sure the snackbar disappears
143
142
waitUntilPageLoad ( )
144
- app. buttons [ AccessibilityIdentifiers . Toolbar. reloadButton] . waitAndTap ( )
145
143
navigator. goto ( BrowserTabMenu)
146
144
navigator. goto ( RequestDesktopSite) // toggle off
147
145
waitUntilPageLoad ( )
@@ -167,8 +165,6 @@ class DesktopModeTestsIphone: IphoneOnlyTestCase {
167
165
navigator. toggleOn ( userState. isPrivate, withAction: Action . TogglePrivateMode)
168
166
navigator. openURL ( path ( forTestPage: " test-user-agent.html " ) )
169
167
waitUntilPageLoad ( )
170
- // Workaround
171
- app. buttons [ AccessibilityIdentifiers . Toolbar. reloadButton] . waitAndTap ( )
172
168
navigator. goto ( BrowserTabMenu)
173
169
navigator. goto ( RequestDesktopSite)
174
170
waitUntilPageLoad ( )
Original file line number Diff line number Diff line change @@ -30,9 +30,7 @@ class FindInPageTests: BaseTestCase {
30
30
func testFindInLargeDoc( ) {
31
31
navigator. openURL ( " http://localhost: \( serverPort) /test-fixture/find-in-page-test.html " )
32
32
waitUntilPageLoad ( )
33
- // Workaround until FxSGraph is fixed to allow the previous way with goto
34
33
navigator. nowAt ( BrowserTab)
35
-
36
34
mozWaitForElementToNotExist ( app. staticTexts [ " Fennec pasted from XCUITests-Runner " ] )
37
35
navigator. goto ( FindInPage)
38
36
@@ -118,7 +116,6 @@ class FindInPageTests: BaseTestCase {
118
116
// https://mozilla.testrail.io/index.php?/cases/view/2323714
119
117
func testFindInPageTwoWordsSearchLargeDoc( ) {
120
118
navigator. openURL ( " http://localhost: \( serverPort) /test-fixture/find-in-page-test.html " )
121
- // Workaround until FxSGraph is fixed to allow the previous way with goto
122
119
waitUntilPageLoad ( )
123
120
navigator. nowAt ( BrowserTab)
124
121
navigator. goto ( FindInPage)
Original file line number Diff line number Diff line change @@ -439,7 +439,6 @@ class HistoryTests: BaseTestCase {
439
439
private func navigateToPage( ) {
440
440
navigator. openURL ( " example.com " )
441
441
waitUntilPageLoad ( )
442
- // Workaround as the item does not appear if there is only that tab open
443
442
navigator. goto ( TabTray)
444
443
navigator. performAction ( Action . OpenNewTabFromTabTray)
445
444
let cancelButton = app. buttons [ AccessibilityIdentifiers . Browser. UrlBar. cancelButton]
@@ -464,19 +463,9 @@ class HistoryTests: BaseTestCase {
464
463
}
465
464
466
465
private func closeFirstTabByX( ) {
467
- // Workaround for FXIOS-5128. To be replaced by tapping "Close All Tabs"
468
466
waitForTabsButton ( )
469
467
navigator. goto ( TabTray)
470
- if isTablet {
471
- app. otherElements [ " Tabs Tray " ]
472
- . collectionViews
473
- . cells
474
- . element ( boundBy: 0 )
475
- . buttons [ StandardImageIdentifiers . Large. crossCircleFill]
476
- . waitAndTap ( )
477
- } else {
478
- app. cells. buttons [ StandardImageIdentifiers . Large. crossCircleFill] . firstMatch. waitAndTap ( )
479
- }
468
+ app. cells. buttons [ StandardImageIdentifiers . Large. crossCircleFill] . firstMatch. waitAndTap ( )
480
469
}
481
470
482
471
private func closeKeyboard( ) {
Original file line number Diff line number Diff line change @@ -46,14 +46,7 @@ class PhotonActionSheetTests: BaseTestCase {
46
46
navigator. openURL ( " example.com " )
47
47
waitUntilPageLoad ( )
48
48
mozWaitForElementToNotExist ( app. staticTexts [ " Fennec pasted from CoreSimulatorBridge " ] )
49
-
50
- // Temporarily workaround for the url bar redesign work FXIOS-8172:
51
- // Launch "Share" from the hamburger menu instead of the share icon from the
52
- // awesome bar.
53
- // mozWaitForElementToExist(app.buttons[AccessibilityIdentifiers.Toolbar.shareButton], timeout: 10)
54
- // app.buttons[AccessibilityIdentifiers.Toolbar.shareButton].tap()
55
- navigator. goto ( ToolsBrowserTabMenu)
56
- app. cells [ AccessibilityIdentifiers . MainMenu. share] . waitAndTap ( )
49
+ app. buttons [ AccessibilityIdentifiers . Toolbar. shareButton] . waitAndTap ( )
57
50
58
51
if #unavailable( iOS 16 ) {
59
52
waitForElementsToExist (
Original file line number Diff line number Diff line change @@ -151,10 +151,8 @@ class TrackingProtectionTests: BaseTestCase {
151
151
XCTAssertEqual ( switchValueOFF as? String , " 0 " )
152
152
153
153
// Open TP Settings menu
154
- // app.buttons["Privacy settings"].waitAndTap()
155
- // Workaround for https://github.com/mozilla-mobile/firefox-ios/issues/23706
156
- navigator. goto ( SettingsScreen)
157
- app. staticTexts [ " Tracking Protection " ] . waitAndTap ( )
154
+ app. buttons [ AccessibilityIdentifiers . EnhancedTrackingProtection
155
+ . MainScreen. trackingProtectionSettingsButton] . waitAndTap ( )
158
156
mozWaitForElementToExist ( app. navigationBars [ " Tracking Protection " ] , timeout: 5 )
159
157
let switchSettingsValue = app. switches [ " prefkey.trackingprotection.normalbrowsing " ] . value!
160
158
XCTAssertEqual ( switchSettingsValue as? String , " 1 " )
0 commit comments