From b228eda488d50c8147a1db777298254b00939ff3 Mon Sep 17 00:00:00 2001 From: wnmzzzz <117174301+wnmzzzz@users.noreply.github.com> Date: Mon, 7 Apr 2025 08:42:46 +0200 Subject: [PATCH] Add Story for AppInitiatedAction to UpdatePassword --- .../pages/LoginUpdatePassword.stories.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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: () => ( + + ) +};