Skip to content

Commit

Permalink
Mocks CSRF Token in all Storybooks
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Jan 26, 2024
1 parent 396b266 commit f8a976a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const preview: Preview = {
date: /Date$/,
},
},
cookie: {
csrftoken: "mockToken",
},
cookiePreserve: true,
},
};

Expand Down
4 changes: 0 additions & 4 deletions src/common/dialog/stories/RevisionsDialog.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@
parameters: {
layout: "centered",
chromatic: { delay: 1000 },
cookie: {
csrftoken: "mockToken",
},
cookiePreserve: true,
},
argTypes: {
enabled: {
Expand Down

0 comments on commit f8a976a

Please sign in to comment.