diff options
Diffstat (limited to 'spec/features/projects/integrations/user_activates_jetbrains_teamcity_ci_spec.rb')
-rw-r--r-- | spec/features/projects/integrations/user_activates_jetbrains_teamcity_ci_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/features/projects/integrations/user_activates_jetbrains_teamcity_ci_spec.rb b/spec/features/projects/integrations/user_activates_jetbrains_teamcity_ci_spec.rb new file mode 100644 index 00000000000..e6f2e462b8c --- /dev/null +++ b/spec/features/projects/integrations/user_activates_jetbrains_teamcity_ci_spec.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe 'User activates JetBrains TeamCity CI' do + include_context 'project integration activation' + + before do + stub_request(:post, /.*teamcity.example.com.*/) + end + + it 'activates integration', :js do + visit_project_integration('JetBrains TeamCity') + check('Push') + check('Merge Request') + fill_in('TeamCity server URL', with: 'http://teamcity.example.com') + fill_in('Build type', with: 'GitlabTest_Build') + fill_in('Username', with: 'user') + fill_in('Password', with: 'verySecret') + + click_test_then_save_integration(expect_test_to_fail: false) + + expect(page).to have_content('JetBrains TeamCity settings saved and active.') + end +end |