The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
test(store): link every offering seller in the cheapest-offer spec (#1699)
Viktor Holik7ac7f605ce0d
diff --git a/integration-tests/http/product/store/offer-product-price.spec.ts b/integration-tests/http/product/store/offer-product-price.spec.tsindex a09c19957..4776f732c 100644--- a/integration-tests/http/product/store/offer-product-price.spec.ts+++ b/integration-tests/http/product/store/offer-product-price.spec.ts@@ -82,16 +82,18 @@ medusaIntegrationTestRunner({headers)- await assignProductsToSeller(- appContainer,- result.seller.id as string,- [product.id]- )-productId = product.idvariantId = product.variants[0].id}+ // The product–seller link is an allowlist: once the first seller is+ // linked, every other seller offering the product must be linked too.+ await assignProductsToSeller(+ appContainer,+ result.seller.id as string,+ [productId]+ )+const shippingProfile = await createShippingProfile(appContainer, {name: `${opts.name} Profile ${tag}`,})