diff --git a/stories/login/pages/LoginUpdatePassword.stories.tsx b/stories/login/pages/LoginUpdatePassword.stories.tsx index 3e84a4a4..b6db2015 100644 --- a/stories/login/pages/LoginUpdatePassword.stories.tsx +++ b/stories/login/pages/LoginUpdatePassword.stories.tsx @@ -62,3 +62,22 @@ export const WithPasswordConfirmError: Story = { /> ) }; + +/** + * WithAppInitiatedAction: + * - Purpose: Tests when the update password action was triggered by an app. + * - Scenario: Simulates the case where the user presses a 'change password' button in an app and is redirected to Keycloak to change it. + * - Key Aspect: Ensures the 'Cancel' button is shown correctly, which displays only when the action is app initiated. + */ +export const WithAppInitiatedAction: Story = { + render: () => ( + + ) +};