diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx b/packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx index 6579450b3..dfce1c14b 100644 --- a/packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx @@ -1,6 +1,6 @@ /* This file is part of GNU Taler - (C) 2021 Taler Systems S.A. + (C) 2022 Taler Systems S.A. GNU Taler is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -15,36 +15,26 @@ */ /** -* -* @author Sebastian Javier Marchano (sebasjm) -*/ - -import { createExample } from '../test-utils'; -import { View as TestedComponent } from './Welcome'; + * + * @author Sebastian Javier Marchano (sebasjm) + */ +import * as tests from "@gnu-taler/web-util/testing"; +import { View as TestedComponent } from "./Welcome.js"; export default { - title: 'wallet/welcome', + title: "welcome", component: TestedComponent, }; -export const Normal = createExample(TestedComponent, { - permissionsEnabled: true, - diagnostics: { - errors: [], - walletManifestVersion: '1.0', - walletManifestDisplayVersion: '1.0', - firefoxIdbProblem: false, - dbOutdated: false, - } +export const Normal = tests.createExample(TestedComponent, { + permissionToggle: { value: true, button: {} }, }); -export const TimedoutDiagnostics = createExample(TestedComponent, { - timedOut: true, - permissionsEnabled: false, +export const TimedoutDiagnostics = tests.createExample(TestedComponent, { + permissionToggle: { value: true, button: {} }, }); -export const RunningDiagnostics = createExample(TestedComponent, { - permissionsEnabled: false, +export const RunningDiagnostics = tests.createExample(TestedComponent, { + permissionToggle: { value: true, button: {} }, }); - |