storybooks second release

This commit is contained in:
Nima Shkouhfar
2024-10-19 17:24:29 -04:00
parent c9d7fc1b6e
commit 0cf8caa53b
20 changed files with 1015 additions and 13 deletions

View File

@ -16,3 +16,25 @@ type Story = StoryObj<typeof meta>;
export const Default: Story = {
render: () => <KcPageStory />
};
/**
* WithAppInitiatedAction:
* - Purpose: Tests when the form is displayed as part of an application-initiated action.
* - Scenario: The component renders the form with additional buttons like "Cancel."
* - Key Aspect: Ensures the "Cancel" button is visible and functional during app-initiated actions.
*/
export const WithAppInitiatedAction: Story = {
render: () => (
<KcPageStory
kcContext={{
url: {
loginAction: "/mock-login-action"
},
messagesPerField: {
exists: () => false
},
isAppInitiatedAction: true
}}
/>
)
};