From 7cf3ae7c482aab50ad88b3d4fffd7e0255094aaf Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Fri, 22 Nov 2024 12:25:06 +0100 Subject: [PATCH] feat: add test ids to components --- .../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 && }