Skip to content

Commit 123a64e

Browse files
authored
Update duplicated string identifier and re-enable failing test (#15699)
2 parents 5940b5c + bc400e2 commit 123a64e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

WooCommerce/Classes/POS/Utils/POSStockFormatter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct POSStockFormatter {
2525
comment: "Label to be displayed in the product's card when out of stock")
2626

2727
static let inStockWithQuantity = NSLocalizedString(
28-
"pos.stockStatusLabel.outofstock",
28+
"pos.stockStatusLabel.inStockWithQuantity",
2929
value: "%1$@ in stock",
3030
comment: "Label to be displayed in the product's card when there's stock of a given product")
3131
}

WooCommerce/WooCommerceTests/POS/Presentation/POSStockFormatterTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ struct POSStockFormatterTests {
9898
#expect(stockLabel == "Out of stock")
9999
}
100100

101-
// Disabled temporarily due to failure to code freeze 22.5
102-
// Context: p1748609128918879?thread_ts=1748592083.887729&cid=CC7L49W13-slack-CC7L49W13
103-
@Test(.disabled()) func test_when_managestock_enabled_and_stockQuantity_is_positive_then_returns_number_in_stock_stockLabel() async throws {
101+
@Test func test_when_managestock_enabled_and_stockQuantity_is_positive_then_returns_number_in_stock_stockLabel() async throws {
104102
// Given
105103
let manageStockEnabled: Bool = true
106104
let stockQuantity: Decimal = 5

0 commit comments

Comments
 (0)