Skip to content

Commit 669be56

Browse files
committed
rename
1 parent 4038037 commit 669be56

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

WooCommerce/Classes/POS/TabBar/POSTabCoordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private extension POSTabCoordinator {
201201
let collectPaymentAnalyticsAdaptor = POSCollectOrderPaymentAnalyticsAdaptor(analytics: serviceAdaptor.analytics)
202202

203203
let cardPresentPaymentService: CardPresentPaymentFacade
204-
if ProcessConfiguration.shouldBypassCardPresentPayment {
204+
if ProcessConfiguration.shouldUseMockCardPresentPayment {
205205
cardPresentPaymentService = CardPresentPaymentServiceScreenshotMock()
206206
} else {
207207
cardPresentPaymentService = await CardPresentPaymentService(siteID: siteID,

WooCommerce/Classes/System/ProcessConfiguration.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ struct ProcessConfiguration {
3737
ProcessInfo.processInfo.arguments.contains("bypass-pos-order-syncing")
3838
}
3939

40-
/// Returns `true` when card present payment should be bypassed for screenshot tests.
41-
static var shouldBypassCardPresentPayment: Bool {
42-
ProcessInfo.processInfo.arguments.contains("bypass-card-present-payment")
40+
/// Returns `true` when card present payment service should be mocked for screenshot tests.
41+
static var shouldUseMockCardPresentPayment: Bool {
42+
ProcessInfo.processInfo.arguments.contains("use-mocked-card-present-payment")
4343
}
4444
}

0 commit comments

Comments
 (0)