Skip to content

Commit

Permalink
test: Attempt to generate snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeelaudibert committed Feb 3, 2025
1 parent 3e7b452 commit 43d1eb0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
23 changes: 13 additions & 10 deletions frontend/src/scenes/insights/EmptyStates/EmptyStates.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ const meta: Meta = {
}
export default meta

export const LoadingMessages: StoryFn = () => {
return (
<div>
<ul>
{LOADING_MESSAGES.map((message) => (
<li key={message}>{message}</li>
))}
</ul>
</div>
)
}
LoadingMessages.parameters = { testOptions: { waitForLoadersToDisappear: false } }

export const Empty: StoryFn = () => {
useStorybookMocks({
get: {
Expand Down Expand Up @@ -149,13 +162,3 @@ LongLoading.parameters = {
}

export const FunnelSingleStep: Story = createInsightStory(funnelOneStep as any)

export const LoadingMessages: StoryFn = () => {
return (
<ul>
{LOADING_MESSAGES.map((message) => (
<li key={message}>{message}</li>
))}
</ul>
)
}
2 changes: 1 addition & 1 deletion frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export function SavedInsightsEmptyState(): JSX.Element {

// show the search string that was used to make the results, not what it currently is
const searchString = insights.filters?.search || null
const { title, description } = SAVED_INSIGHTS_COPY[tab] ?? {}
const { title, description } = SAVED_INSIGHTS_COPY[tab as keyof typeof SAVED_INSIGHTS_COPY] ?? {}

return (
<div
Expand Down

0 comments on commit 43d1eb0

Please sign in to comment.