From ef8de07144f59c7f3d11d952d1fc3f710306e952 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Mon, 23 Dec 2024 17:35:28 +0100 Subject: [PATCH] test: better test ids --- .../src/theme/default/components/card/auth-methods.tsx | 2 +- .../elements-react/src/theme/default/components/form/label.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 c74089b3..366f12d0 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,7 +30,7 @@ export function DefaultAuthMethodListItem({ className="flex cursor-pointer gap-3 py-2 text-left items-start" onClick={onClick} type={isGroupImmediateSubmit(group) ? "submit" : "button"} - data-testid="ory/ui/groups/auth-methods" + data-testid={`ory/ui/groups/auth-method/${group}`} aria-label={`Authenticate with ${group}`} > diff --git a/packages/elements-react/src/theme/default/components/form/label.tsx b/packages/elements-react/src/theme/default/components/form/label.tsx index 38e97353..3c00f28e 100644 --- a/packages/elements-react/src/theme/default/components/form/label.tsx +++ b/packages/elements-react/src/theme/default/components/form/label.tsx @@ -16,7 +16,6 @@ import { } from "@ory/elements-react" import { useFormContext } from "react-hook-form" import { useIntl } from "react-intl" -import { getReturnToQueryParam } from "../card/footer" import { initFlowUrl } from "../../utils/url" function findResendNode(nodes: UiNode[]) {