Add story to test not published list of products
Update Stories Snapshot
This commit is contained in:
parent
7f2361c025
commit
910f721088
3 changed files with 752 additions and 345 deletions
|
@ -324,7 +324,7 @@ export const products = (
|
||||||
},
|
},
|
||||||
id: "UHJvZHVjdDo2NA==",
|
id: "UHJvZHVjdDo2NA==",
|
||||||
isAvailable: true,
|
isAvailable: true,
|
||||||
isPublished: true,
|
isPublished: false,
|
||||||
name: "Light Speed Yellow Paint",
|
name: "Light Speed Yellow Paint",
|
||||||
productType: {
|
productType: {
|
||||||
__typename: "ProductType",
|
__typename: "ProductType",
|
||||||
|
@ -346,7 +346,7 @@ export const products = (
|
||||||
},
|
},
|
||||||
id: "UHJvZHVjdDo2NQ==",
|
id: "UHJvZHVjdDo2NQ==",
|
||||||
isAvailable: true,
|
isAvailable: true,
|
||||||
isPublished: true,
|
isPublished: false,
|
||||||
name: "Hyperspace Turquoise Paint",
|
name: "Hyperspace Turquoise Paint",
|
||||||
productType: {
|
productType: {
|
||||||
__typename: "ProductType",
|
__typename: "ProductType",
|
||||||
|
@ -568,7 +568,7 @@ export const products = (
|
||||||
},
|
},
|
||||||
id: "UHJvZHVjdDo3OQ==",
|
id: "UHJvZHVjdDo3OQ==",
|
||||||
isAvailable: true,
|
isAvailable: true,
|
||||||
isPublished: true,
|
isPublished: false,
|
||||||
name: "Bean Juice",
|
name: "Bean Juice",
|
||||||
productType: {
|
productType: {
|
||||||
__typename: "ProductType",
|
__typename: "ProductType",
|
||||||
|
@ -864,7 +864,7 @@ export const products = (
|
||||||
},
|
},
|
||||||
id: "UHJvZHVjdDoxMTU=",
|
id: "UHJvZHVjdDoxMTU=",
|
||||||
isAvailable: true,
|
isAvailable: true,
|
||||||
isPublished: true,
|
isPublished: false,
|
||||||
name: "Black Hoodie",
|
name: "Black Hoodie",
|
||||||
productType: {
|
productType: {
|
||||||
__typename: "ProductType",
|
__typename: "ProductType",
|
||||||
|
@ -975,7 +975,7 @@ export const products = (
|
||||||
},
|
},
|
||||||
id: "UHJvZHVjdDo4NQ==",
|
id: "UHJvZHVjdDo4NQ==",
|
||||||
isAvailable: true,
|
isAvailable: true,
|
||||||
isPublished: true,
|
isPublished: false,
|
||||||
name: "Colored Parrot Cushion",
|
name: "Colored Parrot Cushion",
|
||||||
productType: {
|
productType: {
|
||||||
__typename: "ProductType",
|
__typename: "ProductType",
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -64,4 +64,10 @@ storiesOf("Views / Products / Product list", module)
|
||||||
products={products.filter(product => product.isPublished)}
|
products={products.filter(product => product.isPublished)}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
|
.add("not published", () => (
|
||||||
|
<ProductListPage
|
||||||
|
{...props}
|
||||||
|
products={products.filter(product => !product.isPublished)}
|
||||||
|
/>
|
||||||
|
))
|
||||||
.add("no data", () => <ProductListPage {...props} products={[]} />);
|
.add("no data", () => <ProductListPage {...props} products={[]} />);
|
||||||
|
|
Loading…
Reference in a new issue