Replace link with button in finish signup in registrations
This commit is contained in:
@@ -821,6 +821,16 @@ footer {
|
||||
|
||||
.auth-page {
|
||||
|
||||
.cancel-button {
|
||||
cursor: pointer;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<% end %>
|
||||
|
||||
<%= 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 %>
|
||||
<div class="text-center">
|
||||
<%= button_to t("devise_views.users.registrations.new.cancel"), destroy_user_session_path, class: "delete cancel-button", method: :delete %>
|
||||
</div>
|
||||
|
||||
@@ -211,7 +211,7 @@ describe "Users" do
|
||||
click_button "Sign up with Twitter"
|
||||
|
||||
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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user