Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update snapshots

dominik-zeglen500e62ada4c2
diff --git a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
index 7ea862385e..07873aa665 100644
--- a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
+++ b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
@@ -4687,7 +4687,22 @@ exports[`Storyshots Orders / OrderCustomer when loaded data 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -4732,7 +4747,22 @@ exports[`Storyshots Orders / OrderCustomer when loaded data 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -4803,7 +4833,20 @@ exports[`Storyshots Orders / OrderCustomer when loading data 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id MuiButton-disabled-id"
+ disabled=""
+ tabindex="-1"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -4833,7 +4876,20 @@ exports[`Storyshots Orders / OrderCustomer when loading data 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id MuiButton-disabled-id"
+ disabled=""
+ tabindex="-1"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -4904,7 +4960,22 @@ exports[`Storyshots Orders / OrderCustomer with different addresses 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -4949,7 +5020,22 @@ exports[`Storyshots Orders / OrderCustomer with different addresses 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -18591,7 +18677,22 @@ exports[`Storyshots Views / Orders / Order details as a unpaid order 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -18636,7 +18737,22 @@ exports[`Storyshots Views / Orders / Order details as a unpaid order 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -19641,7 +19757,22 @@ exports[`Storyshots Views / Orders / Order details when loaded data 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -19737,7 +19868,22 @@ exports[`Storyshots Views / Orders / Order details when loading data 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -20169,7 +20315,22 @@ exports[`Storyshots Views / Orders / Order details when loading data 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
@@ -20199,7 +20360,22 @@ exports[`Storyshots Views / Orders / Order details when loading data 1`] = `
</aside>
<div
class="Component-toolbar-id"
- />
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
</div>
<div
class="Component-children-id"
diff --git a/saleor/static/dashboard-next/storybook/stories/components/AddressEdit.tsx b/saleor/static/dashboard-next/storybook/stories/components/AddressEdit.tsx
index 7f8f559b95..164833ea5f 100644
--- a/saleor/static/dashboard-next/storybook/stories/components/AddressEdit.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/components/AddressEdit.tsx
@@ -4,6 +4,7 @@ import * as React from "react";
import AddressEdit from "../../../components/AddressEdit";
import { Container } from "../../../components/Container";
import { customer } from "../../../customers/fixtures";
+import { transformAddressToForm } from "../../../orders";
import { countries } from "../../../orders/fixtures";
import Decorator from "../../Decorator";
@@ -12,7 +13,8 @@ storiesOf("Generics / AddressEdit", module)
.add("default", () => (
<Container width="sm">
<AddressEdit
- data={customer.defaultBillingAddress}
+ errors={{}}
+ data={transformAddressToForm(customer.defaultBillingAddress)}
countries={countries}
onChange={undefined}
/>