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 && } diff --git a/packages/elements-react/src/theme/default/components/form/index.tsx b/packages/elements-react/src/theme/default/components/form/index.tsx index c487d398..0f281a66 100644 --- a/packages/elements-react/src/theme/default/components/form/index.tsx +++ b/packages/elements-react/src/theme/default/components/form/index.tsx @@ -57,6 +57,7 @@ export function DefaultMessage({ message }: OryMessageContentProps) { "text-forms-fg-default": message.type === "info", "text-forms-fg-success": message.type === "success", })} + data-testid={`ory-message-${message.id}`} > {uiTextToFormattedMessage(message, intl)}