diff options
Diffstat (limited to 'packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx')
-rw-r--r-- | packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx b/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx index a14966cc0..0b055f682 100644 --- a/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx +++ b/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx @@ -30,65 +30,75 @@ export default { export const SimpleComment = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 0, + formId: "simple_comment", onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); + export const Identification = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 1, + formId: "902.1e", onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); + export const OperationalLegalEntity = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 2, + formId: "902.11e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); export const Foundations = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 3, + formId: "902.12e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); export const DelcarationOfTrusts = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 4, + formId: "902.13e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); + export const InformationOnLifeInsurance = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 5, + formId: "902.15e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); export const DeclarationOfBeneficialOwner = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 6, + formId: "902.9e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); export const CustomerProfile = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 7, + formId: "902.5e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); export const RiskProfile = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 8, + formId: "902.4e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); |