diff --git a/app/views/dashboards/_subject.html.erb b/app/views/dashboards/_subject.html.erb index ed0bdc8a370..0ef8bd99f52 100644 --- a/app/views/dashboards/_subject.html.erb +++ b/app/views/dashboards/_subject.html.erb @@ -28,7 +28,8 @@ link_to( truncate(user.homepage_url, length: 20), user.homepage_url, - rel: "nofollow" + rel: "nofollow", + data: { confirm: "Are you sure?" } ) %>

diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb index e4d622bf449..e45eb5d9f6d 100644 --- a/app/views/profiles/show.html.erb +++ b/app/views/profiles/show.html.erb @@ -101,7 +101,8 @@ truncate(@user.homepage_url,length: 20), @user.homepage_url, rel: "nofollow", - class: "profile__header__attribute t-link--black" + class: "profile__header__attribute t-link--black", + data: { confirm: "Are you sure?" } ) %>

diff --git a/test/system/profile_test.rb b/test/system/authorizing_profile_update.rb similarity index 95% rename from test/system/profile_test.rb rename to test/system/authorizing_profile_update.rb index 5afb8195384..5f8a328de5c 100644 --- a/test/system/profile_test.rb +++ b/test/system/authorizing_profile_update.rb @@ -1,7 +1,7 @@ require "application_system_test_case" require "test_helper" -class ProfileTest < ApplicationSystemTestCase +class AuthorizingProfileUpdate < ApplicationSystemTestCase setup do @user = create(:user, email: "nick@example.com", password: PasswordHelpers::SECURE_TEST_PASSWORD, handle: "nick1", mail_fails: 1) end