Commit 420d546b authored by Fatih Acet's avatar Fatih Acet

Merge branch '65088-incorrect-message-interpolation-on-project-listing' into 'master'

Resolve "Incorrect message interpolation on project listing"

Closes #65088

See merge request gitlab-org/gitlab-ce!31121
parents 3736e1de 9aa75af3
...@@ -89,4 +89,6 @@ ...@@ -89,4 +89,6 @@
%span.icon-wrapper.pipeline-status %span.icon-wrapper.pipeline-status
= render 'ci/status/icon', status: project.commit.last_pipeline.detailed_status(current_user), type: 'commit', tooltip_placement: 'top', path: pipeline_path = render 'ci/status/icon', status: project.commit.last_pipeline.detailed_status(current_user), type: 'commit', tooltip_placement: 'top', path: pipeline_path
.updated-note .updated-note
%span #{_('Updated')} #{updated_tooltip} %span
= _('Updated')
= updated_tooltip
---
title: Fix incorrect use of message interpolation
merge_request: 31121
author:
type: fixed
...@@ -53,6 +53,19 @@ describe 'Users > User browses projects on user page', :js do ...@@ -53,6 +53,19 @@ describe 'Users > User browses projects on user page', :js do
expect(page).to have_content(project2.name) expect(page).to have_content(project2.name)
end end
it 'does not have incorrectly interpolated message', :js do
project = create(:project, namespace: user.namespace, updated_at: 2.minutes.since)
sign_in(user)
visit user_path(user)
click_nav_link('Personal projects')
wait_for_requests
expect(page).to have_content(project.name)
expect(page).not_to have_content("_('Updated')")
end
context 'when not signed in' do context 'when not signed in' do
it 'renders user public project' do it 'renders user public project' do
visit user_path(user) visit user_path(user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment