Skip to content

Commit 8c9eb98

Browse files
committed
fix(e2e): move spyOn to beforeEach
1 parent afaa20e commit 8c9eb98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/src/pages/DeploymentSettingsPage/NotificationsPage/Troubleshooting.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ export default meta;
1515
type Story = StoryObj<typeof Troubleshooting>;
1616

1717
export const TestNotification: Story = {
18-
play: async ({ canvasElement }) => {
18+
beforeEach() {
1919
spyOn(API, "postTestNotification").mockResolvedValue();
20+
},
21+
play: async ({ canvasElement }) => {
2022
const user = userEvent.setup();
2123
const canvas = within(canvasElement);
2224

0 commit comments

Comments
 (0)