fix(medusa): Price selection strategy bug with customer groups without customers (#4578)
* change up condition for joining price lists * add changeset * naming * update tests
This commit is contained in:
@@ -1299,9 +1299,11 @@ describe("/admin/price-lists", () => {
|
||||
|
||||
expect(response.status).toBe(200)
|
||||
expect(response.data).toEqual({
|
||||
ids: product1.variants.map((variant, i) => {
|
||||
return getCustomPriceIdFromVariant(variant.id, i)
|
||||
}),
|
||||
ids: expect.arrayContaining(
|
||||
product1.variants.map((variant, i) => {
|
||||
return getCustomPriceIdFromVariant(variant.id, i)
|
||||
})
|
||||
),
|
||||
object: "money-amount",
|
||||
deleted: true,
|
||||
})
|
||||
|
||||
@@ -262,6 +262,12 @@ describe("/admin/products", () => {
|
||||
product_id: productData.id,
|
||||
sku: `test-product_filtering_by_variant_id-${i}`,
|
||||
title: `test-product_filtering_by_variant_id-${i}`,
|
||||
options: [
|
||||
{
|
||||
option_id: "test-product_filtering_by_variant_id-option",
|
||||
value: `Large-${i}`,
|
||||
},
|
||||
],
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user