From 814e66ef7bfe79488bb5739dfedcd4f8d92b23bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=20K=C3=B6bler?= Date: Tue, 3 Jun 2025 12:03:29 +0200 Subject: [PATCH] add missing id attributes on button elements (#39910) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add missing id attributes on button elements this makes automated ui-tests easier to fetch the proper button element, despite label-text closes #39909 Signed-off-by: Niko Köbler * Review Signed-off-by: Alexander Schwartz --------- Signed-off-by: Niko Köbler Signed-off-by: Alexander Schwartz Co-authored-by: Alexander Schwartz --- .../theme/keycloak.v2/login/delete-account-confirm.ftl | 4 ++-- themes/src/main/resources/theme/keycloak.v2/login/field.ftl | 2 +- .../theme/keycloak.v2/login/login-update-password.ftl | 6 +++--- .../src/main/resources/theme/keycloak.v2/login/register.ftl | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/themes/src/main/resources/theme/keycloak.v2/login/delete-account-confirm.ftl b/themes/src/main/resources/theme/keycloak.v2/login/delete-account-confirm.ftl index c755fad61d0..67ba978b9d6 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/delete-account-confirm.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/delete-account-confirm.ftl @@ -29,9 +29,9 @@ <@buttons.actionGroup> - <@buttons.button label="doConfirmDelete" class=["kcButtonPrimaryClass"]/> + <@buttons.button id="kc-submit" label="doConfirmDelete" class=["kcButtonPrimaryClass"]/> <#if triggered_from_aia> - <@buttons.button name="cancel-aia" label="doCancel" class=["kcButtonSecondaryClass"]/> + <@buttons.button id="kc-cancel" name="cancel-aia" label="doCancel" class=["kcButtonSecondaryClass"]/> diff --git a/themes/src/main/resources/theme/keycloak.v2/login/field.ftl b/themes/src/main/resources/theme/keycloak.v2/login/field.ftl index 3e3c9e2e5cb..882a0e6a462 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/field.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/field.ftl @@ -65,7 +65,7 @@ diff --git a/themes/src/main/resources/theme/keycloak.v2/login/login-update-password.ftl b/themes/src/main/resources/theme/keycloak.v2/login/login-update-password.ftl index 8d10f674d50..8b739431d75 100755 --- a/themes/src/main/resources/theme/keycloak.v2/login/login-update-password.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/login-update-password.ftl @@ -18,10 +18,10 @@ <@buttons.actionGroup horizontal=true> <#if isAppInitiatedAction??> - <@buttons.button label="doSubmit" class=["kcButtonPrimaryClass"]/> - <@buttons.button label="doCancel" name="cancel-aia" class=["kcButtonSecondaryClass"]/> + <@buttons.button id="kc-submit" label="doSubmit" class=["kcButtonPrimaryClass"]/> + <@buttons.button id="kc-cancel" label="doCancel" name="cancel-aia" class=["kcButtonSecondaryClass"]/> <#else> - <@buttons.button label="doSubmit" class=["kcButtonPrimaryClass", "kcButtonBlockClass"]/> + <@buttons.button id="kc-submit" label="doSubmit" class=["kcButtonPrimaryClass", "kcButtonBlockClass"]/> diff --git a/themes/src/main/resources/theme/keycloak.v2/login/register.ftl b/themes/src/main/resources/theme/keycloak.v2/login/register.ftl index a140265293d..67cb8650f9d 100755 --- a/themes/src/main/resources/theme/keycloak.v2/login/register.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/register.ftl @@ -42,7 +42,7 @@