From 8e0620bb68cf7095f8d457bb0c81b878a3be5b4b 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 d6f51b589..bd3908109 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 39ab81da5..dfc403b5c 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 }) => {