debian-mirror-gitlab/spec/features/projects/services/user_activates_jetbrains_teamcity_ci_spec.rb

26 lines
670 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
require 'spec_helper'
2020-06-23 00:09:42 +05:30
RSpec.describe 'User activates JetBrains TeamCity CI' do
2020-04-22 19:07:51 +05:30
include_context 'project service activation'
2018-03-17 18:26:18 +05:30
before do
2020-04-22 19:07:51 +05:30
stub_request(:post, /.*teamcity.example.com.*/)
2018-03-17 18:26:18 +05:30
end
2020-04-22 19:07:51 +05:30
it 'activates service', :js do
visit_project_integration('JetBrains TeamCity CI')
2019-09-30 21:07:59 +05:30
check('Push')
2020-06-23 00:09:42 +05:30
check('Merge Request')
2018-03-17 18:26:18 +05:30
fill_in('Teamcity url', with: 'http://teamcity.example.com')
fill_in('Build type', with: 'GitlabTest_Build')
fill_in('Username', with: 'user')
fill_in('Password', with: 'verySecret')
2020-04-22 19:07:51 +05:30
click_test_integration
2018-03-17 18:26:18 +05:30
expect(page).to have_content('JetBrains TeamCity CI activated.')
end
end