Skip to content

Commit

Permalink
fix: add decorator WithLoggedInUser
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Dec 12, 2023
1 parent 11dde3a commit b4d3a37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import {
DatasetPermissionsMother,
DatasetVersionMother
} from '../../../../tests/component/dataset/domain/models/DatasetMother'
import { WithLoggedInUser } from '../../WithLoggedInUser'

const meta: Meta<typeof DatasetActionButtons> = {
title: 'Sections/Dataset Page/DatasetActionButtons',
component: DatasetActionButtons,
decorators: [WithI18next, WithSettings],
decorators: [WithI18next, WithSettings, WithLoggedInUser],
parameters: {
// Sets the delay for all stories.
chromatic: { delay: 15000, pauseAnimationAtEnd: true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import {
DatasetVersionMother
} from '../../../../../tests/component/dataset/domain/models/DatasetMother'
import { PublishDatasetMenu } from '../../../../sections/dataset/dataset-action-buttons/publish-dataset-menu/PublishDatasetMenu'
import { WithLoggedInUser } from '../../../WithLoggedInUser'

const meta: Meta<typeof PublishDatasetMenu> = {
title: 'Sections/Dataset Page/DatasetActionButtons/PublishDatasetMenu',
component: PublishDatasetMenu,
decorators: [WithI18next, WithSettings],
decorators: [WithI18next, WithSettings, WithLoggedInUser],
parameters: {
// Sets the delay for all stories.
chromatic: { delay: 15000, pauseAnimationAtEnd: true }
Expand Down

0 comments on commit b4d3a37

Please sign in to comment.