diff --git a/src/products/components/ProductVariantCreatorPage/ProductVariantCreator.stories.tsx b/src/products/components/ProductVariantCreatorPage/ProductVariantCreator.stories.tsx index fa936506a..806d3bb75 100644 --- a/src/products/components/ProductVariantCreatorPage/ProductVariantCreator.stories.tsx +++ b/src/products/components/ProductVariantCreatorPage/ProductVariantCreator.stories.tsx @@ -140,6 +140,17 @@ storiesOf( step={ProductVariantCreatorStep.prices} warehouses={[props.warehouses[0]]} /> + )) + .add("ship when no warehouses", () => ( + )); storiesOf("Views / Products / Create multiple variants / summary", module) diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index 4efe9fdd0..318c5d806 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -134014,6 +134014,407 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU `; +exports[`Storyshots Views / Products / Create multiple variants / prices and SKUs ship when no warehouses 1`] = ` +
+
+
+
+ + Price + +
+
+
+
+
+
+ +
+
+ +
+ + USD + +
+
+
+ +
+
+
+
+
+ Choose attribute +
+
+
+
+ +
+
+ Box Size +
+ + + +
+
+
+
+
+
+
+
+
+ 100g +
+
+
+
+ +
+ + USD + +
+
+
+
+
+
+
+
+
+ 500g +
+
+
+
+ +
+ + USD + +
+
+
+
+
+
+
+
+
+ + Stock and Warehousing + +
+
+
+
+
+
+ There are no warehouses set up for your store. You can configure variants without providing stock quantities. +
+
+
+
+
+`; + exports[`Storyshots Views / Products / Create multiple variants / summary default 1`] = `
`; +exports[`Storyshots Views / Products / Create product variant no warehouses 1`] = ` +
+
+
+
+
+ Add variant +
+
+
+
+
+
+
+
+
+ + Variants + +
+
+
+
+
+ + + + + + + + + + + + + + + + + +
+
+
+ +
+
+
+ New Variant +
+
+
+
+
+
+
+ + General Information + +
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+ + Pricing + +
+
+
+
+
+
+
+
+ +
+ +
+
+ USD +
+
+ +
+
+
+
+
+ +
+ +
+
+ USD +
+
+ +
+

+ Optional +

+
+
+
+
+
+
+
+
+ + Shipping + +
+
+
+
+
+
+
+ +
+ +
+
+ kg +
+
+ +
+
+
+
+
+
+
+
+ + Inventory + +
+
+
+
+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+
+ + Quantity + +
+
+
+ There are no warehouses set up for your store. To add stock quantity to the variant please + + configure a warehouse + +
+
+
+
+
+
+ + Metadata + +
+
+
+
+ +
+
+
+ + Private Metadata + +
+
+
+
+ +
+
+
+ +
+`; + exports[`Storyshots Views / Products / Create product variant when loading data 1`] = `
`; +exports[`Storyshots Views / Products / Product edit no stock, no variants and no warehouses 1`] = ` +
+
+
+
+
+ Ergonomic Plastic Bacon +
+
+
+
+
+
+
+
+
+ + General Information + +
+
+
+
+
+
+ +
+ + +
+
+
+
+
+
+ Description +
+
+ +
+
+
+
+
+
+ + + bold + + +
+
+
+
+ + + italic + + +
+
+
+
+ + + strikethrough + + +
+
+

+
+ + + h1 + + +
+

+

+
+ + + h2 + + +
+

+

+
+ + + h3 + + +
+

+
+
+ + + blockquote + + +
+
+
    +
  • +
    + + + ul + + +
    +
  • +
+
    +
  1. +
    + + + ol + + +
    +
  2. +
+
+
+ + + link + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + Images + +
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ Id sit dolores adipisci +
+
+
+
+
+ Id sit dolores adipisci +
+
+
+
+
+ Id sit dolores adipisci +
+
+
+
+
+ Id sit dolores adipisci +
+
+
+
+
+ Id sit dolores adipisci +
+
+
+
+
+
+
+
+ + Attributes + +
+
+
+
+
+
+
+
+ 2 Attributes +
+
+ +
+
+
+
+
+ Borders +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+ Legacy +
+
+
+
+
+ + +
+
+
+
+
+
+ Auto Loan Account +
+ +
+
+
+
+
+
+
+
+
+
+ + Pricing + +
+
+
+
+
+
+
+ +
+ +
+
+ USD +
+
+ +
+
+
+
+
+
+
+
+ + Shipping + +
+
+
+
+
+
+
+ +
+ +
+
+ KG +
+
+ +
+
+
+
+
+
+
+
+ + Inventory + +
+
+
+
+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+
+ + Quantity + +
+
+
+ There are no warehouses set up for your store. To add stock quantity to the product please + + configure a warehouse + +
+
+
+
+
+
+ + Search Engine Preview + +
+ +
+
+
+
+
+
+ Add search engine title and description to make this product easier to find +
+
+
+
+
+
+ + Metadata + +
+
+
+
+ + + + + + + + + + + + +