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:
Frane Polić
2025-02-17 19:08:59 +01:00
committed by GitHub
parent 3b7856e8f5
commit ee848bf0f4
19 changed files with 191 additions and 112 deletions

View File

@@ -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,

View File

@@ -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"] },