diff --git a/site/src/pages/DeploymentSettingsPage/NotificationsPage/Troubleshooting.stories.tsx b/site/src/pages/DeploymentSettingsPage/NotificationsPage/Troubleshooting.stories.tsx index 052e855b284a9..bd3deeeee7c26 100644 --- a/site/src/pages/DeploymentSettingsPage/NotificationsPage/Troubleshooting.stories.tsx +++ b/site/src/pages/DeploymentSettingsPage/NotificationsPage/Troubleshooting.stories.tsx @@ -15,8 +15,10 @@ export default meta; type Story = StoryObj; export const TestNotification: Story = { - play: async ({ canvasElement }) => { + beforeEach() { spyOn(API, "postTestNotification").mockResolvedValue(); + }, + play: async ({ canvasElement }) => { const user = userEvent.setup(); const canvas = within(canvasElement);