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>2023-04-28 18:09:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-28 18:09:59 +0300
commite0529f76a36026dc4bd51fbec1e5c52e7f3866e1 (patch)
treeac809b949e3257d89cac17c3409aadddd0a740cb /spec/features/integrations_settings_spec.rb
parent72cb3bee798655c2d370dfedf3c04665aaa43aa3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/integrations_settings_spec.rb')
-rw-r--r--spec/features/integrations_settings_spec.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/features/integrations_settings_spec.rb b/spec/features/integrations_settings_spec.rb
new file mode 100644
index 00000000000..70ce2f55161
--- /dev/null
+++ b/spec/features/integrations_settings_spec.rb
@@ -0,0 +1,29 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe 'Integration settings', feature_category: :integrations do
+ let_it_be(:project) { create(:project) }
+ let_it_be(:user) { create(:user) }
+
+ before do
+ project.add_maintainer(user)
+ sign_in(user)
+ end
+
+ context 'with Shimo Zentao integration records' do
+ before do
+ create(:integration, project: project, type_new: 'Integrations::Shimo', category: 'issue_tracker')
+ create(:integration, project: project, type_new: 'Integrations::Zentao', category: 'issue_tracker')
+ end
+
+ it 'shows settings without Shimo Zentao', :js do
+ visit namespace_project_settings_integrations_path(namespace_id: project.namespace.full_path,
+ project_id: project.path)
+
+ expect(page).to have_content('Add an integration')
+ expect(page).not_to have_content('ZenTao')
+ expect(page).not_to have_content('Shimo')
+ end
+ end
+end