diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-17 12:09:52 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-17 12:09:52 +0000 |
commit | 8ae26d705abe341b03bc15d4373d6cd0c77c0baf (patch) | |
tree | 655ee03a968e340c975b8ab7d77cfd5ceaf3c969 /spec/features/projects/navbar_spec.rb | |
parent | fc1df8c8307fc5022f9e8aae04164c089d8fdf2e (diff) | |
download | gitlab-ce-8ae26d705abe341b03bc15d4373d6cd0c77c0baf.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/projects/navbar_spec.rb')
-rw-r--r-- | spec/features/projects/navbar_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/features/projects/navbar_spec.rb b/spec/features/projects/navbar_spec.rb index 10958db299b..2b8dfc4a5fa 100644 --- a/spec/features/projects/navbar_spec.rb +++ b/spec/features/projects/navbar_spec.rb @@ -18,6 +18,13 @@ describe 'Project navbar' do } end + let(:requirements_nav_item) do + { + nav_item: _('Requirements'), + nav_sub_items: [_('List')] + } + end + let(:structure) do [ { @@ -54,6 +61,7 @@ describe 'Project navbar' do nav_item: _('Merge Requests'), nav_sub_items: [] }, + (requirements_nav_item if Gitlab.ee?), { nav_item: _('CI / CD'), nav_sub_items: [ @@ -100,6 +108,7 @@ describe 'Project navbar' do end before do + stub_licensed_features(requirements: false) project.add_maintainer(user) sign_in(user) end @@ -123,5 +132,15 @@ describe 'Project navbar' do it_behaves_like 'verified navigation bar' end + + context 'when requirements is available' do + before do + stub_licensed_features(requirements: true) + + visit project_path(project) + end + + it_behaves_like 'verified navigation bar' + end end end |