diff --git a/src/user-federation/kerberos/KerberosSettingsRequired.tsx b/src/user-federation/kerberos/KerberosSettingsRequired.tsx
index 9b8eb579e9..e53e6c0259 100644
--- a/src/user-federation/kerberos/KerberosSettingsRequired.tsx
+++ b/src/user-federation/kerberos/KerberosSettingsRequired.tsx
@@ -11,6 +11,7 @@ import { useTranslation } from "react-i18next";
import { UseFormMethods, Controller, useWatch } from "react-hook-form";
import { FormAccess } from "../../components/form-access/FormAccess";
+import { useRealm } from "../../context/realm-context/RealmContext";
import { HelpItem } from "../../components/help-enabler/HelpItem";
import _ from "lodash";
@@ -29,6 +30,7 @@ export const KerberosSettingsRequired = ({
}: KerberosSettingsRequiredProps) => {
const { t } = useTranslation("user-federation");
const helpText = useTranslation("user-federation-help").t;
+ const { realm } = useRealm();
const [isEditModeDropdownOpen, setIsEditModeDropdownOpen] = useState(false);
@@ -62,18 +64,19 @@ export const KerberosSettingsRequired = ({
isRequired
>
{/* These hidden fields are required so data object written back matches data retrieved */}
-
+ /> */}
@@ -102,6 +107,7 @@ export const KerberosSettingsRequired = ({
message: `${t("validateName")}`,
},
})}
+ data-cy="kerberos-name"
/>
{form.errors.name && (
{form.errors.name.message}
@@ -131,6 +137,7 @@ export const KerberosSettingsRequired = ({
message: `${t("validateRealm")}`,
},
})}
+ data-cy="kerberos-realm"
/>
{form.errors.config &&
form.errors.config.kerberosRealm &&
@@ -164,6 +171,7 @@ export const KerberosSettingsRequired = ({
message: `${t("validateServerPrincipal")}`,
},
})}
+ data-cy="kerberos-principal"
/>
{form.errors.config &&
form.errors.config.serverPrincipal &&
@@ -197,6 +205,7 @@ export const KerberosSettingsRequired = ({
message: `${t("validateKeyTab")}`,
},
})}
+ data-cy="kerberos-keytab"
/>
{form.errors.config &&
form.errors.config.keyTab &&
@@ -222,7 +231,7 @@ export const KerberosSettingsRequired = ({
{" "}
(
(
(
@@ -155,6 +156,7 @@ export const SettingsCache = ({
control={form.control}
render={({ onChange, value }) => (