From 55464a0fc9e4566465234183897ea4325b4e823c Mon Sep 17 00:00:00 2001 From: Daniel Riera Date: Wed, 6 Aug 2025 09:49:23 -0400 Subject: [PATCH] PM-24242 Add IDs to AtRisk Notification for automation (#15865) * PM-24242 * fix ts issue in storybook --- .../autofill/content/components/buttons/action-button.ts | 3 +++ .../at-risk-notification/container.lit-stories.ts | 8 ++++++-- .../components/notification/at-risk-password/container.ts | 4 +++- .../components/notification/at-risk-password/footer.ts | 1 + apps/browser/src/autofill/notification/bar.ts | 3 ++- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/apps/browser/src/autofill/content/components/buttons/action-button.ts b/apps/browser/src/autofill/content/components/buttons/action-button.ts index 339b628875c..b43bed7f96b 100644 --- a/apps/browser/src/autofill/content/components/buttons/action-button.ts +++ b/apps/browser/src/autofill/content/components/buttons/action-button.ts @@ -8,6 +8,7 @@ import { Spinner } from "../icons"; export type ActionButtonProps = { buttonText: string | TemplateResult; + dataTestId?: string; disabled?: boolean; isLoading?: boolean; theme: Theme; @@ -17,6 +18,7 @@ export type ActionButtonProps = { export function ActionButton({ buttonText, + dataTestId, disabled = false, isLoading = false, theme, @@ -32,6 +34,7 @@ export function ActionButton({ return html`