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_pushover_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_pushover_spec.rb')
-rw-r--r-- | spec/features/projects/services/user_activates_pushover_spec.rb | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/spec/features/projects/services/user_activates_pushover_spec.rb b/spec/features/projects/services/user_activates_pushover_spec.rb index 34e1cf33f36..62e03e68aee 100644 --- a/spec/features/projects/services/user_activates_pushover_spec.rb +++ b/spec/features/projects/services/user_activates_pushover_spec.rb @@ -3,26 +3,21 @@ require 'spec_helper' describe 'User activates Pushover' 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('Pushover') + stub_request(:post, /.*api.pushover.net.*/) end - it 'activates service' do - check('Active') + it 'activates service', :js do + visit_project_integration('Pushover') fill_in('Api key', with: 'verySecret') fill_in('User key', with: 'verySecret') fill_in('Device', with: 'myDevice') select('High Priority', from: 'Priority') select('Bike', from: 'Sound') - click_button('Save') + + click_test_integration expect(page).to have_content('Pushover activated.') end |