Replace link with button in finish signup in registrations

This commit is contained in:
cyrillefr
2025-04-23 13:35:56 +02:00
parent 3eba2d27a4
commit c989210e74
3 changed files with 14 additions and 4 deletions

View File

@@ -821,6 +821,16 @@ footer {
.auth-page { .auth-page {
.cancel-button {
cursor: pointer;
&:hover,
&:active,
&:focus {
text-decoration: underline;
}
}
.footer { .footer {
margin-top: 0; margin-top: 0;
} }

View File

@@ -20,7 +20,7 @@
<% end %> <% end %>
<%= f.submit t("devise_views.users.registrations.new.submit"), class: "button expanded" %> <%= f.submit t("devise_views.users.registrations.new.submit"), class: "button expanded" %>
<div class="text-center">
<%= link_to t("devise_views.users.registrations.new.cancel"), destroy_user_session_path, class: "delete", method: :delete %>
</div>
<% end %> <% end %>
<div class="text-center">
<%= button_to t("devise_views.users.registrations.new.cancel"), destroy_user_session_path, class: "delete cancel-button", method: :delete %>
</div>

View File

@@ -211,7 +211,7 @@ describe "Users" do
click_button "Sign up with Twitter" click_button "Sign up with Twitter"
expect(page).to have_current_path(finish_signup_path) expect(page).to have_current_path(finish_signup_path)
click_link "Cancel login" click_button "Cancel login"
expect(page).to have_content "You have been signed out successfully" expect(page).to have_content "You have been signed out successfully"