Commit 8aa6760b authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch '233449-aqualls-MR-sidebar' into 'master'

Menu items: fix capitalization of Merge Request

See merge request gitlab-org/gitlab!57850
parents f4e9203f c3da400b
...@@ -91,13 +91,13 @@ ...@@ -91,13 +91,13 @@
.nav-icon-container .nav-icon-container
= sprite_icon('git-merge') = sprite_icon('git-merge')
%span.nav-item-name %span.nav-item-name
= _('Merge Requests') = _('Merge requests')
%span.badge.badge-pill.count= merge_requests_count %span.badge.badge-pill.count= merge_requests_count
%ul.sidebar-sub-level-items.is-fly-out-only %ul.sidebar-sub-level-items.is-fly-out-only
= nav_link(path: 'groups#merge_requests', html_options: { class: "fly-out-top-item" } ) do = nav_link(path: 'groups#merge_requests', html_options: { class: "fly-out-top-item" } ) do
= link_to merge_requests_group_path(@group) do = link_to merge_requests_group_path(@group) do
%strong.fly-out-top-item-name %strong.fly-out-top-item-name
= _('Merge Requests') = _('Merge requests')
%span.badge.badge-pill.count.merge_counter.js-merge-counter.fly-out-badge= merge_requests_count %span.badge.badge-pill.count.merge_counter.js-merge-counter.fly-out-badge= merge_requests_count
= render_if_exists "layouts/nav/ee/security_link" # EE-specific = render_if_exists "layouts/nav/ee/security_link" # EE-specific
......
...@@ -160,14 +160,14 @@ ...@@ -160,14 +160,14 @@
.nav-icon-container .nav-icon-container
= sprite_icon('git-merge') = sprite_icon('git-merge')
%span.nav-item-name#js-onboarding-mr-link %span.nav-item-name#js-onboarding-mr-link
= _('Merge Requests') = _('Merge requests')
%span.badge.badge-pill.count.merge_counter.js-merge-counter %span.badge.badge-pill.count.merge_counter.js-merge-counter
= number_with_delimiter(@project.open_merge_requests_count) = number_with_delimiter(@project.open_merge_requests_count)
%ul.sidebar-sub-level-items.is-fly-out-only %ul.sidebar-sub-level-items.is-fly-out-only
= nav_link(controller: :merge_requests, html_options: { class: "fly-out-top-item" } ) do = nav_link(controller: :merge_requests, html_options: { class: "fly-out-top-item" } ) do
= link_to project_merge_requests_path(@project) do = link_to project_merge_requests_path(@project) do
%strong.fly-out-top-item-name %strong.fly-out-top-item-name
= _('Merge Requests') = _('Merge requests')
%span.badge.badge-pill.count.merge_counter.js-merge-counter.fly-out-badge %span.badge.badge-pill.count.merge_counter.js-merge-counter.fly-out-badge
= number_with_delimiter(@project.open_merge_requests_count) = number_with_delimiter(@project.open_merge_requests_count)
......
...@@ -85,7 +85,7 @@ RSpec.describe 'Project navbar' do ...@@ -85,7 +85,7 @@ RSpec.describe 'Project navbar' do
stub_licensed_features(requirements: true) stub_licensed_features(requirements: true)
insert_after_nav_item( insert_after_nav_item(
_('Merge Requests'), _('Merge requests'),
new_nav_item: { new_nav_item: {
nav_item: _('Requirements'), nav_item: _('Requirements'),
nav_sub_items: [_('List')] nav_sub_items: [_('List')]
......
...@@ -19,7 +19,7 @@ RSpec.describe 'The group page' do ...@@ -19,7 +19,7 @@ RSpec.describe 'The group page' do
expect(page).to have_link('Details') expect(page).to have_link('Details')
expect(page).to have_link('Activity') expect(page).to have_link('Activity')
expect(page).to have_link('Issues') expect(page).to have_link('Issues')
expect(page).to have_link('Merge Requests') expect(page).to have_link('Merge requests')
expect(page).to have_link('Members') expect(page).to have_link('Members')
end end
end end
...@@ -50,7 +50,7 @@ RSpec.describe 'The group page' do ...@@ -50,7 +50,7 @@ RSpec.describe 'The group page' do
expect(page).not_to have_link('Contribution') expect(page).not_to have_link('Contribution')
expect(page).not_to have_link('Issues') expect(page).not_to have_link('Issues')
expect(page).not_to have_link('Merge Requests') expect(page).not_to have_link('Merge requests')
expect(page).to have_link('Members') expect(page).to have_link('Members')
end end
end end
......
...@@ -27,7 +27,7 @@ RSpec.describe 'Group merge requests page' do ...@@ -27,7 +27,7 @@ RSpec.describe 'Group merge requests page' do
end end
it 'ignores archived merge request count badges in navbar' do it 'ignores archived merge request count badges in navbar' do
expect(first(:link, text: 'Merge Requests').find('.badge').text).to eq("1") expect(first(:link, text: 'Merge requests').find('.badge').text).to eq("1")
end end
it 'ignores archived merge request count badges in state-filters' do it 'ignores archived merge request count badges in state-filters' do
......
...@@ -30,7 +30,7 @@ RSpec.describe 'Group navbar' do ...@@ -30,7 +30,7 @@ RSpec.describe 'Group navbar' do
] ]
}, },
{ {
nav_item: _('Merge Requests'), nav_item: _('Merge requests'),
nav_sub_items: [] nav_sub_items: []
}, },
(security_and_compliance_nav_item if Gitlab.ee?), (security_and_compliance_nav_item if Gitlab.ee?),
......
...@@ -79,7 +79,7 @@ RSpec.describe 'Project active tab' do ...@@ -79,7 +79,7 @@ RSpec.describe 'Project active tab' do
visit project_merge_requests_path(project) visit project_merge_requests_path(project)
end end
it_behaves_like 'page has active tab', 'Merge Requests' it_behaves_like 'page has active tab', 'Merge requests'
end end
context 'on project Wiki' do context 'on project Wiki' do
......
...@@ -208,7 +208,7 @@ RSpec.describe 'Project fork' do ...@@ -208,7 +208,7 @@ RSpec.describe 'Project fork' do
expect(page).to have_content(/new merge request/i) expect(page).to have_content(/new merge request/i)
page.within '.nav-sidebar' do page.within '.nav-sidebar' do
first(:link, 'Merge Requests').click first(:link, 'Merge requests').click
end end
expect(page).to have_content(/new merge request/i) expect(page).to have_content(/new merge request/i)
......
...@@ -14,7 +14,9 @@ RSpec.describe 'Merge Request button' do ...@@ -14,7 +14,9 @@ RSpec.describe 'Merge Request button' do
it 'does not show Create merge request button' do it 'does not show Create merge request button' do
visit url visit url
expect(page).not_to have_link(label) within '.content-wrapper' do
expect(page).not_to have_link(label)
end
end end
end end
......
...@@ -151,7 +151,7 @@ RSpec.describe 'User uses shortcuts', :js do ...@@ -151,7 +151,7 @@ RSpec.describe 'User uses shortcuts', :js do
find('body').native.send_key('g') find('body').native.send_key('g')
find('body').native.send_key('m') find('body').native.send_key('m')
expect(page).to have_active_navigation('Merge Requests') expect(page).to have_active_navigation('Merge requests')
end end
end end
......
...@@ -59,7 +59,7 @@ RSpec.shared_context 'project navbar structure' do ...@@ -59,7 +59,7 @@ RSpec.shared_context 'project navbar structure' do
] ]
}, },
{ {
nav_item: _('Merge Requests'), nav_item: _('Merge requests'),
nav_sub_items: [] nav_sub_items: []
}, },
{ {
...@@ -190,7 +190,7 @@ RSpec.shared_context 'group navbar structure' do ...@@ -190,7 +190,7 @@ RSpec.shared_context 'group navbar structure' do
] ]
}, },
{ {
nav_item: _('Merge Requests'), nav_item: _('Merge requests'),
nav_sub_items: [] nav_sub_items: []
}, },
security_and_compliance_nav_item, security_and_compliance_nav_item,
......
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