summaryrefslogtreecommitdiff
path: root/spec/features/projects/features_visibility_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/features_visibility_spec.rb')
-rw-r--r--spec/features/projects/features_visibility_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/projects/features_visibility_spec.rb b/spec/features/projects/features_visibility_spec.rb
index 5553e496e7a..a825911b01a 100644
--- a/spec/features/projects/features_visibility_spec.rb
+++ b/spec/features/projects/features_visibility_spec.rb
@@ -41,7 +41,7 @@ describe 'Edit Project Settings' do
end
context 'When external issue tracker is enabled and issues enabled on project settings' do
- it 'does not hide issues tab' do
+ it 'does not hide issues tab and hides labels tab' do
allow_next_instance_of(Project) do |instance|
allow(instance).to receive(:external_issue_tracker).and_return(JiraService.new)
end
@@ -49,11 +49,12 @@ describe 'Edit Project Settings' do
visit project_path(project)
expect(page).to have_selector('.shortcuts-issues')
+ expect(page).not_to have_selector('.shortcuts-labels')
end
end
context 'When external issue tracker is enabled and issues disabled on project settings' do
- it 'hides issues tab' do
+ it 'hides issues tab and show labels tab' do
project.issues_enabled = false
project.save!
allow_next_instance_of(Project) do |instance|
@@ -63,6 +64,7 @@ describe 'Edit Project Settings' do
visit project_path(project)
expect(page).not_to have_selector('.shortcuts-issues')
+ expect(page).to have_selector('.shortcuts-labels')
end
end