From 13458a929b4b11fc0bf313f50bcb891feb877d3f Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Thu, 3 Oct 2019 17:09:31 +0200 Subject: [PATCH] Fix tests --- .../ProductVariantCreate.stories.tsx | 8 +- .../__snapshots__/Stories.test.ts.snap | 510 ++++++++---------- 2 files changed, 232 insertions(+), 286 deletions(-) diff --git a/src/products/components/ProductVariantCreateDialog/ProductVariantCreate.stories.tsx b/src/products/components/ProductVariantCreateDialog/ProductVariantCreate.stories.tsx index a0738af4c..31722b97b 100644 --- a/src/products/components/ProductVariantCreateDialog/ProductVariantCreate.stories.tsx +++ b/src/products/components/ProductVariantCreateDialog/ProductVariantCreate.stories.tsx @@ -69,7 +69,7 @@ const props: ProductVariantCreateContentProps = { }, dispatchFormDataAction: () => undefined, errors: [], - step: "attributes" + step: "values" }; storiesOf("Views / Products / Create multiple variants", module) @@ -85,10 +85,7 @@ storiesOf("Views / Products / Create multiple variants", module) )) .addDecorator(Decorator) - .add("choose attributes", () => ) - .add("select values", () => ( - - )) + .add("choose values", () => ) .add("prices and SKU", () => ( )); @@ -118,6 +115,7 @@ storiesOf("Views / Products / Create multiple variants", module) .add("interactive", () => ( undefined} onSubmit={() => undefined} diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index 8d328b28d..a4f3bf4d2 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -83462,7 +83462,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors `; -exports[`Storyshots Views / Products / Create multiple variants choose attributes 1`] = ` +exports[`Storyshots Views / Products / Create multiple variants choose values 1`] = `
@@ -83478,7 +83478,7 @@ exports[`Storyshots Views / Products / Create multiple variants choose attribute class="ProductVariantCreateTabs-root-id" >
+ > +
+ Box Size +
+
+
+ + + + +
+
+ Coffee Genre +
+
+
+ + +
+
+ Collar +
+
+
+ + + +
+
@@ -84070,284 +84296,6 @@ exports[`Storyshots Views / Products / Create multiple variants prices and SKU 1 `; -exports[`Storyshots Views / Products / Create multiple variants select values 1`] = ` -
-
-
-
-
-
- - Select Values - -
-
- - Prices and SKU - -
-
- - Summary - -
-
-
-
- Box Size -
-
-
- - - - -
-
- Coffee Genre -
-
-
- - -
-
- Collar -
-
-
- - - -
-
-
-
-
-
-`; - exports[`Storyshots Views / Products / Create product When loading 1`] = `