From c6af80f3eb812006e56c57be7f1c3c290a06ce1b Mon Sep 17 00:00:00 2001 From: Daniel Riera Date: Fri, 23 May 2025 11:48:23 -0400 Subject: [PATCH] PM-21651 [For Automation Purposes] add test IDs to notification bar (#14863) * PM-21651 [For Automation Purposes] Please add IDs to some of the main components * option items * dynamic test id * mitigate feedback * clean up logic --- .../buttons/option-selection-button.ts | 3 ++ .../option-selection-button.lit-stories.ts | 2 + .../confirmation/container.lit-stories.ts | 8 +++- .../notification/container.lit-stories.ts | 5 ++- .../option-selection.lit-stories.ts | 5 ++- .../notification/confirmation/container.ts | 4 +- .../components/notification/container.ts | 4 +- .../option-selection/option-item.ts | 3 ++ .../option-selection/option-items.ts | 3 ++ .../option-selection/option-selection.ts | 5 +++ .../content/components/rows/button-row.ts | 1 + apps/browser/src/autofill/notification/bar.ts | 42 +++++++++++++++---- 12 files changed, 70 insertions(+), 15 deletions(-) diff --git a/apps/browser/src/autofill/content/components/buttons/option-selection-button.ts b/apps/browser/src/autofill/content/components/buttons/option-selection-button.ts index 3912c791d34..ddefd02f6e1 100644 --- a/apps/browser/src/autofill/content/components/buttons/option-selection-button.ts +++ b/apps/browser/src/autofill/content/components/buttons/option-selection-button.ts @@ -10,6 +10,7 @@ import { AngleUp, AngleDown } from "../icons"; export type OptionSelectionButtonProps = { disabled: boolean; icon?: Option["icon"]; + id: string; text?: string; theme: Theme; toggledOn: boolean; @@ -19,6 +20,7 @@ export type OptionSelectionButtonProps = { export function OptionSelectionButton({ disabled, icon, + id, text, theme, toggledOn, @@ -31,6 +33,7 @@ export function OptionSelectionButton({ return html`