diff --git a/src/components/keycloak-card/KeycloakCard.tsx b/src/components/keycloak-card/KeycloakCard.tsx index acb2758caa..f8dda497e5 100644 --- a/src/components/keycloak-card/KeycloakCard.tsx +++ b/src/components/keycloak-card/KeycloakCard.tsx @@ -64,6 +64,7 @@ export const KeycloakCard = ({ onClick={(e) => handleCardMenuClick(e)} isOpen={isDropdownOpen} dropdownItems={dropdownItems} + data-cy={`${title}-dropdown`} /> )} diff --git a/src/components/view-header/ViewHeader.tsx b/src/components/view-header/ViewHeader.tsx index be5ebfd01e..05bd28c6ec 100644 --- a/src/components/view-header/ViewHeader.tsx +++ b/src/components/view-header/ViewHeader.tsx @@ -112,6 +112,7 @@ export const ViewHeader = ({ } isOpen={isDropdownOpen} dropdownItems={dropdownItems} + data-cy="action-dropdown" /> )} diff --git a/src/user-federation/UserFederationKerberosSettings.tsx b/src/user-federation/UserFederationKerberosSettings.tsx index e16afb281d..2ea8b81e8e 100644 --- a/src/user-federation/UserFederationKerberosSettings.tsx +++ b/src/user-federation/UserFederationKerberosSettings.tsx @@ -57,7 +57,11 @@ const KerberosSettingsHeader = ({ titleKey="Kerberos" subKey="" dropdownItems={[ - toggleDeleteDialog()}> + toggleDeleteDialog()} + data-cy="delete-provider-cmd" + > {t("deleteProvider")} , ]} diff --git a/src/user-federation/UserFederationSection.tsx b/src/user-federation/UserFederationSection.tsx index 1ebe6a2be9..b7cd3ce9d6 100644 --- a/src/user-federation/UserFederationSection.tsx +++ b/src/user-federation/UserFederationSection.tsx @@ -110,6 +110,7 @@ export const UserFederationSection = () => { onClick={() => { toggleDeleteForCard(userFederation.id!); }} + data-cy="card-delete" > {t("common:delete")} , diff --git a/src/user-federation/shared/SettingsCache.tsx b/src/user-federation/shared/SettingsCache.tsx index 69bc9b56c0..2e15db8d68 100644 --- a/src/user-federation/shared/SettingsCache.tsx +++ b/src/user-federation/shared/SettingsCache.tsx @@ -156,6 +156,7 @@ export const SettingsCache = ({ control={form.control} render={({ onChange, value }) => (