aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-11-01 16:10:49 -0300
committerSebastian <sebasjm@gmail.com>2021-11-01 16:10:55 -0300
commit88d142d2098ad87613222e9a0c6df478a78f6528 (patch)
treec5552e43a4641edb233fc858670d50c41d2c7c9b /packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx
parentea2acd1d3caa21f23127687214045a49d8fea0ad (diff)
downloadwallet-core-88d142d2098ad87613222e9a0c6df478a78f6528.tar.gz
wallet-core-88d142d2098ad87613222e9a0c6df478a78f6528.tar.bz2
wallet-core-88d142d2098ad87613222e9a0c6df478a78f6528.zip
more styling
added placeholders for inputs import declaration for png next button now has tooltip providing info about whats missing a lot more of examples for UI testing added qr dependency for totp rendering added email and field input types added all auth method setup screens added modal when there is not auth provider merge continent and country into location section others improvements as well...
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx')
-rw-r--r--packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx55
1 files changed, 55 insertions, 0 deletions
diff --git a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx
index 8f86831a9..5077c3eb0 100644
--- a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx
+++ b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @typescript-eslint/camelcase */
/*
This file is part of GNU Taler
(C) 2021 Taler Systems S.A.
@@ -19,6 +20,7 @@
* @author Sebastian Javier Marchano (sebasjm)
*/
+import { ReducerState } from 'anastasis-core';
import { createExample, reducerStatesExample } from '../../utils';
import { AuthenticationEditorScreen as TestedComponent } from './AuthenticationEditorScreen';
@@ -36,3 +38,56 @@ export default {
};
export const Example = createExample(TestedComponent, reducerStatesExample.authEditing);
+export const OneAuthMethodConfigured = createExample(TestedComponent, {
+ ...reducerStatesExample.authEditing,
+ authentication_methods: [{
+ type: 'question',
+ instructions: 'what time is it?',
+ challenge: 'asd',
+ }]
+} as ReducerState);
+
+
+export const SomeMoreAuthMethodConfigured = createExample(TestedComponent, {
+ ...reducerStatesExample.authEditing,
+ authentication_methods: [{
+ type: 'question',
+ instructions: 'what time is it?',
+ challenge: 'asd',
+ },{
+ type: 'question',
+ instructions: 'what time is it?',
+ challenge: 'qwe',
+ },{
+ type: 'sms',
+ instructions: 'what time is it?',
+ challenge: 'asd',
+ },{
+ type: 'email',
+ instructions: 'what time is it?',
+ challenge: 'asd',
+ },{
+ type: 'email',
+ instructions: 'what time is it?',
+ challenge: 'asd',
+ },{
+ type: 'email',
+ instructions: 'what time is it?',
+ challenge: 'asd',
+ },{
+ type: 'email',
+ instructions: 'what time is it?',
+ challenge: 'asd',
+ }]
+} as ReducerState);
+
+export const NoAuthMethodProvided = createExample(TestedComponent, {
+ ...reducerStatesExample.authEditing,
+ authentication_providers: {},
+ authentication_methods: []
+} as ReducerState);
+
+ // type: string;
+ // instructions: string;
+ // challenge: string;
+ // mime_type?: string;