Welcome to mirror list, hosted at ThFree Co, Russian Federation.

integrations_settings_spec.rb « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 70ce2f551612d73b0a0b973b9ee446c8202adefc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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