fix(core-flows): use product title for line item title (#12397)
* fix(core-flows): use prduct title for line item title * fix: module tests * fix: http tests * fix: display item subtitle instead of prod title as secondary text in line item * fix: claim/exchange items
This commit is contained in:
@@ -1668,8 +1668,8 @@ medusaIntegrationTestRunner({
|
||||
is_custom_price: false,
|
||||
quantity: 1,
|
||||
requires_shipping: false, // product doesn't have a shipping profile nor inventory items that require shipping
|
||||
subtitle: "Test product",
|
||||
title: "Test variant",
|
||||
title: "Test product",
|
||||
subtitle: "Test variant",
|
||||
unit_price: 3000,
|
||||
updated_at: expect.any(Date),
|
||||
}),
|
||||
@@ -1719,8 +1719,8 @@ medusaIntegrationTestRunner({
|
||||
is_custom_price: false,
|
||||
quantity: 1,
|
||||
requires_shipping: false,
|
||||
subtitle: "Test product",
|
||||
title: "Test variant",
|
||||
title: "Test product",
|
||||
subtitle: "Test variant",
|
||||
unit_price: 2000,
|
||||
updated_at: expect.any(Date),
|
||||
}),
|
||||
@@ -1841,7 +1841,8 @@ medusaIntegrationTestRunner({
|
||||
unit_price: 3000,
|
||||
is_tax_inclusive: true,
|
||||
quantity: 1,
|
||||
title: "Test variant",
|
||||
title: "Test product",
|
||||
subtitle: "Test variant",
|
||||
}),
|
||||
]),
|
||||
})
|
||||
@@ -2093,7 +2094,8 @@ medusaIntegrationTestRunner({
|
||||
unit_price: 1500,
|
||||
is_tax_inclusive: true,
|
||||
quantity: 1,
|
||||
title: "Test variant",
|
||||
title: "Test product",
|
||||
subtitle: "Test variant",
|
||||
}),
|
||||
]),
|
||||
})
|
||||
@@ -2322,7 +2324,7 @@ medusaIntegrationTestRunner({
|
||||
unit_price: 3000,
|
||||
is_tax_inclusive: true,
|
||||
quantity: 1,
|
||||
title: "Test variant",
|
||||
title: "Test product",
|
||||
}),
|
||||
]),
|
||||
})
|
||||
@@ -2478,7 +2480,7 @@ medusaIntegrationTestRunner({
|
||||
unit_price: 3000,
|
||||
is_tax_inclusive: true,
|
||||
quantity: 1,
|
||||
title: "Test variant",
|
||||
title: "Test product",
|
||||
}),
|
||||
]),
|
||||
})
|
||||
@@ -2566,7 +2568,7 @@ medusaIntegrationTestRunner({
|
||||
quantity: 1,
|
||||
unit_price: 5000,
|
||||
is_custom_price: true,
|
||||
title: "Test variant",
|
||||
title: "Test product",
|
||||
},
|
||||
],
|
||||
})
|
||||
@@ -2600,7 +2602,7 @@ medusaIntegrationTestRunner({
|
||||
unit_price: 5000,
|
||||
is_custom_price: true,
|
||||
quantity: 2,
|
||||
title: "Test variant",
|
||||
title: "Test product",
|
||||
})
|
||||
)
|
||||
})
|
||||
|
||||
@@ -776,7 +776,7 @@ medusaIntegrationTestRunner({
|
||||
expect.objectContaining({
|
||||
unit_price: 1500,
|
||||
quantity: 2,
|
||||
title: "S / Black",
|
||||
title: product.title,
|
||||
}),
|
||||
],
|
||||
subtotal: 3000,
|
||||
@@ -805,12 +805,12 @@ medusaIntegrationTestRunner({
|
||||
expect.objectContaining({
|
||||
unit_price: 1500,
|
||||
quantity: 2,
|
||||
title: "S / Black",
|
||||
title: product.title,
|
||||
}),
|
||||
expect.objectContaining({
|
||||
unit_price: 1500,
|
||||
quantity: 1,
|
||||
title: "S / Black",
|
||||
title: product.title,
|
||||
}),
|
||||
]),
|
||||
subtotal: 4500,
|
||||
|
||||
@@ -246,8 +246,8 @@ medusaIntegrationTestRunner({
|
||||
}),
|
||||
items: expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
title: "Test variant",
|
||||
subtitle: "Test product",
|
||||
title: "Test product",
|
||||
subtitle: "Test variant",
|
||||
product_title: "Test product",
|
||||
product_description: null,
|
||||
product_subtitle: null,
|
||||
@@ -313,8 +313,8 @@ medusaIntegrationTestRunner({
|
||||
}),
|
||||
}),
|
||||
expect.objectContaining({
|
||||
title: "Variant variable",
|
||||
subtitle: "Another product",
|
||||
title: "Another product",
|
||||
subtitle: "Variant variable",
|
||||
raw_unit_price: expect.objectContaining({
|
||||
value: "200",
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user