From 9982e35fd98186691e5f88bec2166806578ba21a Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Tue, 26 Nov 2024 19:43:32 +0100 Subject: [PATCH] feat: add test ids to components (#290) --- .../src/theme/default/components/card/auth-methods.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/elements-react/src/theme/default/components/card/auth-methods.tsx b/packages/elements-react/src/theme/default/components/card/auth-methods.tsx index 680fd7bd..82c5fc36 100644 --- a/packages/elements-react/src/theme/default/components/card/auth-methods.tsx +++ b/packages/elements-react/src/theme/default/components/card/auth-methods.tsx @@ -30,6 +30,9 @@ export function DefaultAuthMethodListItem({ className="flex text-left py-2 gap-3 cursor-pointer" onClick={onClick} type={isGroupImmediateSubmit(group) ? "submit" : "button"} + id={`auth-method-list-item-${group}`} + data-testid="auth-method-list-item" + aria-label={`Authenticate with ${group}`} >
{Icon && }