storybooks second release
This commit is contained in:
@ -16,3 +16,32 @@ type Story = StoryObj<typeof meta>;
|
||||
export const Default: Story = {
|
||||
render: () => <KcPageStory />
|
||||
};
|
||||
|
||||
/**
|
||||
* WithCustomLogoutMessage:
|
||||
* - Purpose: Tests when a custom message is displayed for the logout confirmation.
|
||||
* - Scenario: The component renders with a custom logout confirmation message instead of the default one.
|
||||
* - Key Aspect: Ensures the custom logout message is displayed correctly.
|
||||
*/
|
||||
export const WithCustomLogoutMessage: Story = {
|
||||
render: () => (
|
||||
<KcPageStory
|
||||
kcContext={{
|
||||
url: {
|
||||
logoutConfirmAction: "/mock-logout-action"
|
||||
},
|
||||
client: {
|
||||
baseUrl: "/mock-client-url"
|
||||
},
|
||||
logoutConfirm: {
|
||||
code: "mock-session-code",
|
||||
skipLink: false
|
||||
},
|
||||
message: {
|
||||
summary: "Are you sure you want to log out from all sessions?",
|
||||
type: "warning"
|
||||
}
|
||||
}}
|
||||
/>
|
||||
)
|
||||
};
|
||||
|
Reference in New Issue
Block a user