diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-06 09:09:17 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-06 09:09:17 +0000 |
commit | eaea945e0355826c58c3dcf887496ea91064f85c (patch) | |
tree | 0f20e03304d35e68375e99a606b9b94483e37ee5 /spec/features/projects/services/user_activates_pivotaltracker_spec.rb | |
parent | cce8cf03d3bebe8b05375e4db0004328f84b28a2 (diff) | |
download | gitlab-ce-eaea945e0355826c58c3dcf887496ea91064f85c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/projects/services/user_activates_pivotaltracker_spec.rb')
-rw-r--r-- | spec/features/projects/services/user_activates_pivotaltracker_spec.rb | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/spec/features/projects/services/user_activates_pivotaltracker_spec.rb b/spec/features/projects/services/user_activates_pivotaltracker_spec.rb index 67ff99c0295..c81c5081867 100644 --- a/spec/features/projects/services/user_activates_pivotaltracker_spec.rb +++ b/spec/features/projects/services/user_activates_pivotaltracker_spec.rb @@ -3,22 +3,17 @@ require 'spec_helper' describe 'User activates PivotalTracker' do - let(:project) { create(:project) } - let(:user) { create(:user) } + include_context 'project service activation' before do - project.add_maintainer(user) - sign_in(user) - - visit(project_settings_integrations_path(project)) - - click_link('PivotalTracker') + stub_request(:post, /.*www.pivotaltracker.com.*/) end - it 'activates service' do - check('Active') + it 'activates service', :js do + visit_project_integration('PivotalTracker') fill_in('Token', with: 'verySecret') - click_button('Save') + + click_test_integration expect(page).to have_content('PivotalTracker activated.') end |