diff options
author | Sebastian <sebasjm@gmail.com> | 2023-04-21 10:47:47 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-04-21 10:47:47 -0300 |
commit | f470f167e32d8f7775ad994f09afb1d353b0b300 (patch) | |
tree | 3a1f2a040bb09d6639c81436b90b416fb8044f91 /packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx | |
parent | 6dcc488a2c8fd681941e5d3b62bb04af7669888e (diff) | |
download | wallet-core-f470f167e32d8f7775ad994f09afb1d353b0b300.tar.xz |
integrate anastasis to the web-utils testing api
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx index 20cd7e3c9..5f1022247 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx @@ -20,8 +20,9 @@ */ import { ReducerState } from "@gnu-taler/anastasis-core"; -import { createExample, reducerStatesExample } from "../../../utils/index.js"; -import { authMethods as TestedComponent, KnownAuthMethods } from "./index.js"; +import { tests } from "@gnu-taler/web-util/lib/index.browser"; +import { reducerStatesExample } from "../../../utils/index.js"; +import { KnownAuthMethods, authMethods as TestedComponent } from "./index.js"; export default { title: "Auth method: Totp solve", @@ -37,9 +38,12 @@ export default { const type: KnownAuthMethods = "totp"; -export const WithoutFeedback = createExample( +export const WithoutFeedback = tests.createExample( TestedComponent[type].solve, { + id: "uuid-1", + }, + { ...reducerStatesExample.challengeSolving, recovery_information: { challenges: [ @@ -53,7 +57,4 @@ export const WithoutFeedback = createExample( }, selected_challenge_uuid: "uuid-1", } as ReducerState, - { - id: "uuid-1", - }, ); |