Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-25 09:11:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-25 09:11:18 +0300
commitfd5a9d4a57a490bede85e0493c1571df659a8559 (patch)
tree266dddd45aebc9181c8a4aca389786990512ecad /spec/views/profiles
parent65de487500295d4093cd53d392ea98980f070d57 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/profiles')
-rw-r--r--spec/views/profiles/show.html.haml_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/views/profiles/show.html.haml_spec.rb b/spec/views/profiles/show.html.haml_spec.rb
index daa1d20e6b1..5751d47ee97 100644
--- a/spec/views/profiles/show.html.haml_spec.rb
+++ b/spec/views/profiles/show.html.haml_spec.rb
@@ -17,6 +17,11 @@ RSpec.describe 'profiles/show' do
expect(rendered).to have_field('user_name', with: user.name)
expect(rendered).to have_field('user_id', with: user.id)
+
+ expectd_link = help_page_path('user/profile/index', anchor: 'change-the-email-displayed-on-your-commits')
+ expected_link_html = "<a href=\"#{expectd_link}\" target=\"_blank\" " \
+ "rel=\"noopener noreferrer\">#{_('Learn more.')}</a>"
+ expect(rendered.include?(expected_link_html)).to eq(true)
end
end
end