Replace link with button in change user link
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<% if managed_user.document_number.present? %>
|
<% if managed_user.document_number.present? %>
|
||||||
<section class="account-info">
|
<section class="account-info">
|
||||||
<%= link_to(t("management.account_info.change_user"),
|
<%= button_to(t("management.account_info.change_user"),
|
||||||
logout_management_users_path,
|
logout_management_users_path,
|
||||||
method: :delete,
|
method: :delete,
|
||||||
class: "float-right btchange-user button hollow") %>
|
class: "float-right btchange-user button hollow") %>
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ describe "Managed User" do
|
|||||||
expect(page).to have_content "Identified as"
|
expect(page).to have_content "Identified as"
|
||||||
expect(page).to have_content user.username.to_s
|
expect(page).to have_content user.username.to_s
|
||||||
|
|
||||||
click_link "Change user"
|
click_button "Change user"
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_content "User session signed out successfully."
|
expect(page).to have_content "User session signed out successfully."
|
||||||
|
|||||||
Reference in New Issue
Block a user