Skip to content

Commit 48fa4b1

Browse files
committed
remove goToReviews from tab nav
1 parent fa01b6d commit 48fa4b1

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

WooCommerce/UITestsFoundation/Screens/TabNavComponent.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,10 @@ public final class TabNavComponent: ScreenObject {
1919
$0.tabBars.firstMatch.buttons["tab-bar-menu-item"]
2020
}
2121

22-
private let reviewsTabButtonGetter: (XCUIApplication) -> XCUIElement = {
23-
$0.tabBars.firstMatch.buttons["tab-bar-reviews-item"]
24-
}
25-
2622
private var myStoreTabButton: XCUIElement { myStoreTabButtonGetter(app) }
2723
private var ordersTabButton: XCUIElement { ordersTabButtonGetter(app) }
2824
private var menuTabButton: XCUIElement { menuTabButtonGetter(app) }
29-
private var reviewsTabButton: XCUIElement { reviewsTabButtonGetter(app) }
30-
var productsTabButton: XCUIElement { productsTabButtonGetter(app) }
25+
private var productsTabButton: XCUIElement { productsTabButtonGetter(app) }
3126

3227
public init(app: XCUIApplication = XCUIApplication()) throws {
3328
try super.init(
@@ -64,12 +59,6 @@ public final class TabNavComponent: ScreenObject {
6459
return try MenuScreen()
6560
}
6661

67-
@discardableResult
68-
public func goToReviewsScreen() throws -> ReviewsScreen {
69-
reviewsTabButton.tap()
70-
return try ReviewsScreen()
71-
}
72-
7362
static func isLoaded() -> Bool {
7463
(try? TabNavComponent().isLoaded) ?? false
7564
}

0 commit comments

Comments
 (0)