diff options
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx index 7669668ee..2da80a8bb 100644 --- a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx @@ -20,7 +20,8 @@ */ import { ReducerState } from "@gnu-taler/anastasis-core"; -import { createExample, reducerStatesExample } from "../../utils/index.js"; +import { tests } from "@gnu-taler/web-util/lib/index.browser"; +import { reducerStatesExample } from "../../utils/index.js"; import { SecretSelectionScreen, SecretSelectionScreenFound, @@ -34,17 +35,9 @@ export default { }, }; -export const Example = createExample( +export const Example = tests.createExample( SecretSelectionScreenFound, { - ...reducerStatesExample.secretSelection, - recovery_document: { - provider_url: "https://kudos.demo.anastasis.lu/", - secret_name: "secretName", - version: 1, - }, - } as ReducerState, - { policies: [ { secret_name: "The secret name 1", @@ -70,9 +63,21 @@ export const Example = createExample( }, ], }, + { + ...reducerStatesExample.secretSelection, + recovery_document: { + provider_url: "https://kudos.demo.anastasis.lu/", + secret_name: "secretName", + version: 1, + }, + } as ReducerState, ); -export const NoRecoveryDocumentFound = createExample(SecretSelectionScreen, { - ...reducerStatesExample.secretSelection, - recovery_document: undefined, -} as ReducerState); +export const NoRecoveryDocumentFound = tests.createExample( + SecretSelectionScreen, + {}, + { + ...reducerStatesExample.secretSelection, + recovery_document: undefined, + } as ReducerState, +); |