Skip to content

Commit

Permalink
fix: screenshot flapping from missing mock (#19045)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Dec 4, 2023
1 parent 5ba512a commit 44e7216
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useEffect } from 'react'
import { App } from 'scenes/App'
import { urls } from 'scenes/urls'

import { setFeatureFlags } from '~/mocks/browser'
import { mswDecorator, setFeatureFlags } from '~/mocks/browser'
import { SidePanelTab } from '~/types'

import { sidePanelStateLogic } from './sidePanelStateLogic'
Expand All @@ -18,6 +18,14 @@ const meta: Meta = {
viewMode: 'story',
mockDate: '2023-07-04', // To stabilize relative dates
},
decorators: [
mswDecorator({
get: {
'/api/projects/:team_id/dashboard_templates/': {},
'/api/projects/:id/integrations': { results: [] },
},
}),
],
}
export default meta

Expand Down

0 comments on commit 44e7216

Please sign in to comment.