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>2021-07-28 15:10:41 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-28 15:10:41 +0300
commitb1e352740bd52771b419829abef0a0ad73141ac1 (patch)
treee86202376eb85b6314ab90fe028c0889098b05ef /spec/views
parentaeee5b6a212eafefe3c994fb3731ccfca590a6ba (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/layouts/nav/sidebar/_group.html.haml_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/views/layouts/nav/sidebar/_group.html.haml_spec.rb b/spec/views/layouts/nav/sidebar/_group.html.haml_spec.rb
index b34a2450af8..c00c3efe6d6 100644
--- a/spec/views/layouts/nav/sidebar/_group.html.haml_spec.rb
+++ b/spec/views/layouts/nav/sidebar/_group.html.haml_spec.rb
@@ -65,4 +65,18 @@ RSpec.describe 'layouts/nav/sidebar/_group' do
expect(rendered).to have_link('Milestones', href: group_milestones_path(group))
end
end
+
+ describe 'Merge Requests' do
+ it 'has a link to the merge request list path' do
+ render
+
+ expect(rendered).to have_link('Merge requests', href: merge_requests_group_path(group))
+ end
+
+ it 'shows pill with the number of merge requests' do
+ render
+
+ expect(rendered).to have_css('span.badge.badge-pill.merge_counter.js-merge-counter')
+ end
+ end
end