Skip to content

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

Update tests

dominik-zeglen24b2d69f2794
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 6c4b6691fc..1f4593bf90 100644
--- a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
+++ b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
@@ -843,6 +843,63 @@ exports[`Storyshots Categories / CategoryProducts without initial data 1`] = `
</div>
`;
+exports[`Storyshots Components / ErrorPage default 1`] = `
+<div>
+ <div
+ class="NotFoundPage-root-id"
+ >
+ <div
+ class="NotFoundPage-container-id"
+ >
+ <div
+ class="NotFoundPage-innerContainer-id"
+ >
+ <div>
+ <h1
+ class="MuiTypography-root-id MuiTypography-display1-id NotFoundPage-upperHeader-id"
+ >
+ Ooops!...
+ </h1>
+ <h1
+ class="MuiTypography-root-id MuiTypography-display2-id NotFoundPage-bottomHeader-id"
+ >
+ Error
+ </h1>
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id"
+ >
+ We've encountered a problem...
+ </p>
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id"
+ >
+ Don't worry, everything is gonna be fine
+ </p>
+ </div>
+ <div>
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id NotFoundPage-button-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Back to home
+ </span>
+ </button>
+ </div>
+ </div>
+ <div>
+ <span
+ class="isvg pending NotFoundPage-notFoundImage-id"
+ />
+ </div>
+ </div>
+ </div>
+</div>
+`;
+
exports[`Storyshots Generics / ActionDialog default 1`] = `<div />`;
exports[`Storyshots Generics / AddressEdit default 1`] = `
diff --git a/saleor/static/dashboard-next/storybook/config.js b/saleor/static/dashboard-next/storybook/config.js
index c2d81c9517..eaeb524c65 100644
--- a/saleor/static/dashboard-next/storybook/config.js
+++ b/saleor/static/dashboard-next/storybook/config.js
@@ -10,6 +10,7 @@ function loadStories() {
require("./stories/components/DateFormatter");
require("./stories/components/EditableTableCell");
require("./stories/components/ErrorMessageCard");
+ require("./stories/components/ErrorPage");
require("./stories/components/ExternalLink");
require("./stories/components/Money");
require("./stories/components/MultiAutocompleteSelectField");