diff options
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx index cc378d8f6..6bf6c2e30 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx @@ -23,8 +23,9 @@ import { ChallengeFeedbackStatus, ReducerState, } from "@gnu-taler/anastasis-core"; -import { createExample, reducerStatesExample } from "../../../utils/index.js"; +import { reducerStatesExample } from "../../../utils/index.js"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index.js"; +import { tests } from "@gnu-taler/web-util/lib/index.browser"; export default { title: "Auth method: Email solve", @@ -40,9 +41,12 @@ export default { const type: KnownAuthMethods = "email"; -export const WithoutFeedback = createExample( +export const WithoutFeedback = tests.createExample( TestedComponent[type].solve, { + id: "uuid-1", + }, + { ...reducerStatesExample.challengeSolving, recovery_information: { challenges: [ @@ -56,14 +60,14 @@ export const WithoutFeedback = createExample( }, selected_challenge_uuid: "uuid-1", } as ReducerState, - { - id: "uuid-1", - }, ); -export const PaymentFeedback = createExample( +export const PaymentFeedback = tests.createExample( TestedComponent[type].solve, { + id: "uuid-1", + }, + { ...reducerStatesExample.challengeSolving, recovery_information: { challenges: [ @@ -85,7 +89,4 @@ export const PaymentFeedback = createExample( }, }, } as ReducerState, - { - id: "uuid-1", - }, ); |