feat(core-flows, dashboard, medusa, types): optional shipping profile (#11434)
* feat: create product flow changes * feat: allow unsetting SP on product update * feat: update prepare line item helper * test: add testcase * wip: fix tests * fix: update module tests * fix: cart module test
This commit is contained in:
@@ -990,7 +990,7 @@ medusaIntegrationTestRunner({
|
||||
is_tax_inclusive: true,
|
||||
is_custom_price: false,
|
||||
quantity: 1,
|
||||
requires_shipping: true,
|
||||
requires_shipping: false, // product doesn't have a shipping profile nor inventory items that require shipping
|
||||
subtitle: "Test product",
|
||||
title: "Test variant",
|
||||
unit_price: 3000,
|
||||
@@ -1006,7 +1006,7 @@ medusaIntegrationTestRunner({
|
||||
metadata: {
|
||||
foo: "bar",
|
||||
},
|
||||
requires_shipping: true,
|
||||
requires_shipping: true, // overriden when adding to cart
|
||||
subtitle: "Test subtitle",
|
||||
thumbnail: "some-url",
|
||||
title: "Test item",
|
||||
@@ -1040,7 +1040,7 @@ medusaIntegrationTestRunner({
|
||||
is_tax_inclusive: false,
|
||||
is_custom_price: false,
|
||||
quantity: 1,
|
||||
requires_shipping: true,
|
||||
requires_shipping: false,
|
||||
subtitle: "Test product",
|
||||
title: "Test variant",
|
||||
unit_price: 2000,
|
||||
|
||||
@@ -1218,7 +1218,6 @@ medusaIntegrationTestRunner({
|
||||
"/admin/products",
|
||||
{
|
||||
title: "Test fixture",
|
||||
shipping_profile_id: shippingProfile.id,
|
||||
options: [
|
||||
{ title: "size", values: ["large", "small"] },
|
||||
{ title: "color", values: ["green"] },
|
||||
|
||||
Reference in New Issue
Block a user