From f44edde1f460065e6ae0ef69bcd3e90deaa39415 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 20 Oct 2025 16:19:51 +0800 Subject: [PATCH] fix tests --- next-ui/src/pages/claim.stories.ts | 4 ++-- next-ui/src/pages/login.stories.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/next-ui/src/pages/claim.stories.ts b/next-ui/src/pages/claim.stories.ts index d6f51b58..bd390810 100644 --- a/next-ui/src/pages/claim.stories.ts +++ b/next-ui/src/pages/claim.stories.ts @@ -59,7 +59,7 @@ export const Invalid: Story = { export const Loading: Story = { parameters: { msw: { - handlers: [http.all('*', async () => await delay(5_000))], + handlers: [...meta.parameters.msw.handlers, http.post('*', async () => await delay(5_000))], }, }, play: async ({ canvas, userEvent }) => { @@ -85,7 +85,7 @@ export const Loading: Story = { export const Error: Story = { parameters: { msw: { - handlers: [http.all('*', response502BadGateway)], + handlers: [...meta.parameters.msw.handlers, http.post('*', response502BadGateway)], }, }, play: async ({ canvas, userEvent }) => { diff --git a/next-ui/src/pages/login.stories.ts b/next-ui/src/pages/login.stories.ts index 39ab81da..dfc403b5 100644 --- a/next-ui/src/pages/login.stories.ts +++ b/next-ui/src/pages/login.stories.ts @@ -76,7 +76,7 @@ export const Loading: Story = { export const Error: Story = { parameters: { msw: { - handlers: [http.all('*', response502BadGateway)], + handlers: [http.post('*', response502BadGateway)], }, }, play: async ({ canvas, userEvent }) => {