Skip to content

Commit f16c5df

Browse files
committed
lint and periphery
1 parent f614aa1 commit f16c5df

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

Modules/Sources/UITestsFoundation/Screens/POS/POSScreen.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import ScreenObject
22
import XCTest
3-
3+
// periphery: ignore - used for UI testing
44
public final class POSScreen: ScreenObject {
5-
65
private let cartViewGetter: (XCUIApplication) -> XCUIElement = {
76
$0.otherElements["pos-cart-view"]
87
}
@@ -122,7 +121,7 @@ public final class POSScreen: ScreenObject {
122121

123122
return self
124123
}
125-
124+
126125
@discardableResult
127126
public func tapMenuButton() -> Self {
128127
let menuButton = app.buttons["pos-menu-button"]

Modules/Sources/UITestsFoundation/Screens/TabNavComponent.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import ScreenObject
22
import XCTest
33

4+
// periphery:ignore:all
45
public final class TabNavComponent: ScreenObject {
56

67
private let myStoreTabButtonGetter: (XCUIApplication) -> XCUIElement = {
@@ -14,7 +15,7 @@ public final class TabNavComponent: ScreenObject {
1415
private let productsTabButtonGetter: (XCUIApplication) -> XCUIElement = {
1516
$0.tabBars.firstMatch.buttons["tab-bar-products-item"]
1617
}
17-
18+
1819
private let posTabButtonGetter: (XCUIApplication) -> XCUIElement = {
1920
$0.tabBars.firstMatch.buttons["tab-bar-pos-item"]
2021
}

WooCommerce/Classes/POS/Mocks/CardPresentPaymentServiceScreenshotMock.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Foundation
22
import Yosemite
33
import Combine
4-
import WooFoundationCore
54
import PointOfSale
65

76
final class CardPresentPaymentServiceScreenshotMock: CardPresentPaymentFacade {

WooCommerce/Classes/POS/Mocks/POSOrderServiceScreenshotMock.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import Foundation
22
import Yosemite
33
import WooFoundationCore
44
import class WooFoundation.CurrencySettings
5-
import class WooFoundationCore.CurrencyFormatter
65
import struct NetworkingCore.OrderItem
76
import PointOfSale
87

98
/// Mock order service for screenshot tests that returns immediate loaded state
109
final class POSOrderServiceScreenshotMock: POSOrderServiceProtocol {
10+
// periphery: ignore - needed for conformance, not explicitely for the mock
1111
private let currency: String
1212

1313
init(currency: String) {
@@ -109,5 +109,3 @@ final class POSOrderServiceScreenshotMock: POSOrderServiceProtocol {
109109

110110
func markOrderAsCompletedWithCashPayment(order: Order, changeDueAmount: String?) async throws {}
111111
}
112-
113-

0 commit comments

Comments
 (0)