From 85b730bce85d38ce8e88a90f213775ed60b29a82 Mon Sep 17 00:00:00 2001
From: dominik-zeglen
Date: Wed, 1 Apr 2020 18:40:19 +0200
Subject: [PATCH] Update stories
---
src/shipping/fixtures.ts | 14 +-
.../__snapshots__/Stories.test.ts.snap | 10884 ++++++++++------
2 files changed, 7163 insertions(+), 3735 deletions(-)
diff --git a/src/shipping/fixtures.ts b/src/shipping/fixtures.ts
index c05e6d2da..77eab37f9 100644
--- a/src/shipping/fixtures.ts
+++ b/src/shipping/fixtures.ts
@@ -1,4 +1,3 @@
-import { warehouseList } from "@saleor/warehouses/fixtures";
import { ShippingMethodTypeEnum } from "../types/globalTypes";
import { ShippingZoneDetailsFragment } from "./types/ShippingZoneDetailsFragment";
import { ShippingZoneFragment } from "./types/ShippingZoneFragment";
@@ -1646,5 +1645,16 @@ export const shippingZone: ShippingZoneDetailsFragment = {
type: ShippingMethodTypeEnum.PRICE
}
],
- warehouses: warehouseList
+ warehouses: [
+ {
+ __typename: "Warehouse",
+ id: "V2FyZWhvdXNlOmEzMThmMGZlLTcwMmYtNDNjYy1hYmFjLWZmZmMzN2Y3ZTliYw==",
+ name: "C our wares"
+ },
+ {
+ __typename: "Warehouse",
+ id: "V2FyZWhvdXNlOjJmN2UyOTlmLWEwMzMtNDhjZS1iYmM5LTFkZDM4NjU2ZjMwYw==",
+ name: "Be stocked"
+ }
+ ]
};
diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap
index f6535eb25..2dc1dd71d 100644
--- a/src/storybook/__snapshots__/Stories.test.ts.snap
+++ b/src/storybook/__snapshots__/Stories.test.ts.snap
@@ -34628,7 +34628,7 @@ exports[`Storyshots Views / Configuration default 1`] = `
>
@@ -34638,50 +34638,12 @@ exports[`Storyshots Views / Configuration default 1`] = `
- Shipping Methods
+ Taxes
- Manage how you ship out orders
-
-
-
-
-
-
-
-
-
- Warehouses
-
-
- Manage and update your warehouse information
+ Manage how your store charges tax
@@ -34697,7 +34659,7 @@ exports[`Storyshots Views / Configuration default 1`] = `
- Product Settings
+ Staff Settings
@@ -34731,12 +34693,12 @@ exports[`Storyshots Views / Configuration default 1`] = `
- Warehouses
+ Staff Members
- Manage and update your warehouse information
+ Manage your employees and their permissions
@@ -34814,7 +34776,7 @@ exports[`Storyshots Views / Configuration default 1`] = `
>
@@ -34824,33 +34786,16 @@ exports[`Storyshots Views / Configuration default 1`] = `
- Taxes
+ Shipping Methods
- Manage how your store charges tax
+ Manage how you ship out orders
-
-
-
-
-
@@ -34869,7 +34814,7 @@ exports[`Storyshots Views / Configuration default 1`] = `
>
@@ -34879,12 +34824,12 @@ exports[`Storyshots Views / Configuration default 1`] = `
- Staff Members
+ Warehouses
- Manage your employees and their permissions
+ Manage and update your warehouse information
@@ -35314,6 +35259,61 @@ exports[`Storyshots Views / Configuration partial access 1`] = `
+
+
+
+
+
+
+
+
+ Warehouses
+
+
+ Manage and update your warehouse information
+
+
+
+
+
+
@@ -96180,40 +96180,6 @@ exports[`Storyshots Views / Product types / Product type details no attributes 1
-
-
- Available inventoty at:
-
-
-
- All Warehouses
-
-
-
-
@@ -97529,1792 +97495,94 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
style="padding:24px"
>
-
-
+ Summary
+
-
- You will create variants below
-
-
-
-
-
-
-
-
-
-
-
-
- 100g
-
-
- Arabica
-
-
- Round
-
-
-
-
-
-
- USD
-
-
-
-
-
-
-
-
-
-
-
- 100g
-
-
- Arabica
-
-
- Polo
-
-
-
-
-
-
- USD
-
-
-
-
-
-
-
-
-
-
-
- 500g
-
-
- Arabica
-
-
- Round
-
-
-
-
-
-
- USD
-
-
-
-
-
-
-
-
-
-
-
- 500g
-
-
- Arabica
-
-
- Polo
-
-
-
-
-
-
- USD
-
-
-
-
-
-
-
-
-
-
+ class="CardTitle-toolbar-id"
+ />
-
-
-
-`;
-
-exports[`Storyshots Views / Products / Create multiple variants / summary errors 1`] = `
-
-
-
+
+
-
- Select Values
-
+ Variant
-
-
-
-
- You will create variants below
-
-
-
-
-
-
-
-
-
-
-
-
- 100g
-
-
- Arabica
-
-
- Round
-
-
-
-
-
-
- USD
-
-
-
-
-
-
-
-
-
-
-
- 100g
-
-
- Arabica
-
-
- Polo
-
-
-
-
-
-
- USD
-
-
-
-
-
-
-
-
-
-
-
- 500g
-
-
- Arabica
-
-
- Round
-
-
-
-
-
-
- USD
-
-
-
-
-
-
-
-
-
-
-
- 500g
-
-
- Arabica
-
-
- Polo
-
-
-
-
-
-
- USD
-
-
-
-
-
-
-
-
-
-
-
-
- SKUs must be unique
-
-
-
-
-
-
-
-
-
-
-
-`;
-
-exports[`Storyshots Views / Products / Create multiple variants choose values 1`] = `
-
-`;
-
-exports[`Storyshots Views / Products / Create multiple variants interactive 1`] = `
-
-`;
-
-exports[`Storyshots Views / Products / Create multiple variants prices and SKU 1`] = `
-
-
-
-
-
-
-
Price
-
-
+
+
+
-
-
-
-
-
-
-
- Apply single price to all SKUs
-
-
-
-
+
+ Arabica
+
+
+ Round
+
+
+
+
-
-
-
-
-
-
-
-
- Stock
-
-
-
-
+
+`;
+
+exports[`Storyshots Views / Products / Create multiple variants / summary errors 1`] = `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100g
+
+
+ Arabica
+
+
+ Round
+
+
+
+
+
+
+ USD
+
+
+
+
+
+
+
+
+
+
+
+ 100g
+
+
+ Arabica
+
+
+ Polo
+
+
+
+
+
+
+ USD
+
+
+
+
+
+
+
+
+
+
+
+ 500g
+
+
+ Arabica
+
+
+ Round
+
+
+
+
+
+
+ USD
+
+
+
+
+
+
+
+
+
+
+
+ 500g
+
+
+ Arabica
+
+
+ Polo
+
+
+
+
+
+
+ USD
+
+
+
+
+
+
+
+
+
+
+
+
+ SKUs must be unique
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`Storyshots Views / Products / Create multiple variants choose values 1`] = `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`Storyshots Views / Products / Create multiple variants interactive 1`] = `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`Storyshots Views / Products / Create multiple variants prices and SKU 1`] = `
+
+
+
-
+
+
+
+ Apply single price to all SKUs
+
+
+
+
+
+
+
`;
+exports[`Storyshots Views / Products / Edit warehouses default 1`] = `
+
+`;
+
+exports[`Storyshots Views / Products / Edit warehouses loading confirmation 1`] = `
+
+`;
+
+exports[`Storyshots Views / Products / Edit warehouses loading warehouses 1`] = `
+
+`;
+
+exports[`Storyshots Views / Products / Edit warehouses with error 1`] = `
+
+`;
+
exports[`Storyshots Views / Products / Product edit form errors 1`] = `
+
+
+ Available inventoty at:
+
+
+
+ All Warehouses
+
+
+
+
@@ -107786,6 +108745,40 @@ Ctrl + K"
+
+
+ Available inventoty at:
+
+
+
+ All Warehouses
+
+
+
+
@@ -108359,6 +109352,1786 @@ Ctrl + K"
`;
+exports[`Storyshots Views / Products / Product edit no stock and no variants 1`] = `
+
+`;
+
exports[`Storyshots Views / Products / Product edit no variants 1`] = `
- Variants
+ Inventory
-
-
+ />
-
+ Active inventory tracking will automatically calculate changes of stock
+
+
+
+
+
+
+
+
+
+ Warehouse Name
+ |
+
+ Quantity Available
+ |
+
+
+
+
+
+ C our wares
+ |
+
+
+ |
+
+
+
+ Be stocked
+ |
+
+
+ |
+
+
+
- Configurable
+ Simple
+
+
+ Available inventoty at:
+
+
+
+ All Warehouses
+
+
+
+
@@ -112510,10 +115390,10 @@ Ctrl + K"
class="MuiCardContent-root-id"
>
-
+
+
+
+
+
+
+ Warehouse Name
+ |
+
+ Quantity Available
+ |
+
+
+
+
+
+ This product doesn't have any stock. You can add it
+
+ here
+
+ .
+ |
+
+
+
+
+
+ Available inventoty at:
+
+
+
+ All Warehouses
+
+
+
+
@@ -114145,13 +117128,7 @@ Ctrl + K"
class="MuiTableCell-root-id MuiTableCell-head-id ProductVariants-colName-id"
scope="col"
>
- Name
-
-
- Status
+ Variant
|
SKU
|
+
+ Inventory
+ |
Cordoba Oro
-
-
- Available
-
- |
87192-94370
|
+
+ 5 available at 2 locations
+ |
silver
-
-
- Available
-
- |
69055-15190
|
+
+ 13 available at 1 location
+ |
@@ -115889,10 +118862,10 @@ Ctrl + K"
class="MuiCardContent-root-id"
>
-
+
+
+
+
+
+
+
+
+
+ Warehouse Name
+ |
+
+ Quantity Available
+ |
+
+
+
+
+
+ C our wares
+ |
+
+
+ |
+
+
+
+ Be stocked
+ |
+
+
+ |
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- Select warehouse from which you will ship products for this shipping zone. This warehouse address will also be used to calculate taxes.
-
-
-
-
-
-
@@ -116686,7 +119697,7 @@ exports[`Storyshots Views / Products / Product image details when loaded data 1`
>
-
-
-
-
-
-
-
-
-
-
-
- Select warehouse from which you will ship products for this shipping zone. This warehouse address will also be used to calculate taxes.
-
-
-
-
-
-
@@ -117004,99 +119922,6 @@ exports[`Storyshots Views / Products / Product image details when loading data 1
-
-
-
-
-
-
-
-
-
-
-
- Select warehouse from which you will ship products for this shipping zone. This warehouse address will also be used to calculate taxes.
-
-
-
-
-
-
@@ -122383,7 +125208,7 @@ exports[`Storyshots Views / Products / Product variant details attribute errors
- Stock
+ Inventory
@@ -123065,7 +126017,7 @@ exports[`Storyshots Views / Products / Product variant details when loaded data
- Stock
+ Inventory
+
+
+
+
+
+
+ Warehouse Name
+ |
+
+ Quantity Available
+ |
+
+
+
+
+
+ Warehouse 1
+ |
+
+
+ |
+
+
+
+ Warehouse 2
+ |
+
+
+ |
+
+
+
@@ -123513,7 +126592,7 @@ exports[`Storyshots Views / Products / Product variant details when loading data
- Stock
+ Inventory
+
+
+
+
+
+
+ Warehouse Name
+ |
+
+ Quantity Available
+ |
+
+
+
+
+
+ This product doesn't have any stock. You can add it
+
+ here
+
+ .
+ |
+
+
+
@@ -123695,7 +126839,7 @@ exports[`Storyshots Views / Services / Create service default 1`] = `
>
@@ -142623,7 +146051,7 @@ exports[`Storyshots Views / Warehouses / Create warehouse form errors 1`] = `
- Generic form error
+ Invalid value
- Generic form error
+ Invalid value
- Generic form error
+ Invalid value
- Generic form error
+ Invalid value
- Generic form error
+ Invalid value
@@ -142825,7 +146253,7 @@ exports[`Storyshots Views / Warehouses / Create warehouse form errors 1`] = `
>
- Generic form error
+ Invalid value
@@ -142873,16 +146301,16 @@ exports[`Storyshots Views / Warehouses / Create warehouse form errors 1`] = `
class="MuiFormControl-root-id MuiTextField-root-id MuiFormControl-fullWidth-id"
>
-
- Generic form error
-
- Generic form error
+ Invalid value
@@ -143302,7 +146725,7 @@ exports[`Storyshots Views / Warehouses / Create warehouse loading 1`] = `
>
- Generic form error
+ Invalid value
@@ -144118,7 +147541,7 @@ exports[`Storyshots Views / Warehouses / Warehouse details form errors 1`] = `
- Generic form error
+ Invalid value
- Generic form error
+ Invalid value
- Generic form error
+ Invalid value
- Generic form error
+ Invalid value
- Generic form error
+ Invalid value
@@ -144320,7 +147743,7 @@ exports[`Storyshots Views / Warehouses / Warehouse details form errors 1`] = `
>
- Generic form error
+ Invalid value
@@ -144368,16 +147791,16 @@ exports[`Storyshots Views / Warehouses / Warehouse details form errors 1`] = `
class="MuiFormControl-root-id MuiTextField-root-id MuiFormControl-fullWidth-id"
>
-
- Generic form error
-
- Generic form error
+ Invalid value
@@ -144875,7 +148293,7 @@ exports[`Storyshots Views / Warehouses / Warehouse details loading 1`] = `
>