Replace link with button in change user link

This commit is contained in:
cyrillefr
2025-04-14 11:36:52 +02:00
parent e370a52650
commit 267dd931d8
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<% if managed_user.document_number.present? %>
<section class="account-info">
<%= link_to(t("management.account_info.change_user"),
<%= button_to(t("management.account_info.change_user"),
logout_management_users_path,
method: :delete,
class: "float-right btchange-user button hollow") %>

View File

@@ -149,7 +149,7 @@ describe "Managed User" do
expect(page).to have_content "Identified as"
expect(page).to have_content user.username.to_s
click_link "Change user"
click_button "Change user"
end
expect(page).to have_content "User session signed out successfully."