diff options
Diffstat (limited to 'spec/features/projects/services/user_activates_slack_notifications_spec.rb')
-rw-r--r-- | spec/features/projects/services/user_activates_slack_notifications_spec.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/features/projects/services/user_activates_slack_notifications_spec.rb b/spec/features/projects/services/user_activates_slack_notifications_spec.rb index 12f15699e26..20e2bd3f085 100644 --- a/spec/features/projects/services/user_activates_slack_notifications_spec.rb +++ b/spec/features/projects/services/user_activates_slack_notifications_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe 'User activates Slack notifications' do +RSpec.describe 'User activates Slack notifications', :js do include_context 'project service activation' context 'when service is not configured yet' do @@ -10,7 +10,7 @@ describe 'User activates Slack notifications' do visit_project_integration('Slack notifications') end - it 'activates service', :js do + it 'activates service' do fill_in('Webhook', with: 'https://hooks.slack.com/services/SVRWFV0VVAR97N/B02R25XN3/ZBqu7xMupaEEICInN685') click_test_then_save_integration @@ -38,13 +38,13 @@ describe 'User activates Slack notifications' do end it 'filters events by channel' do - expect(page.find_field('service_push_channel').value).to have_content('1') - expect(page.find_field('service_issue_channel').value).to have_content('2') - expect(page.find_field('service_merge_request_channel').value).to have_content('3') - expect(page.find_field('service_note_channel').value).to have_content('4') - expect(page.find_field('service_tag_push_channel').value).to have_content('5') - expect(page.find_field('service_pipeline_channel').value).to have_content('6') - expect(page.find_field('service_wiki_page_channel').value).to have_content('7') + expect(page.find_field(name: 'service[push_channel]').value).to have_content('1') + expect(page.find_field(name: 'service[issue_channel]').value).to have_content('2') + expect(page.find_field(name: 'service[merge_request_channel]').value).to have_content('3') + expect(page.find_field(name: 'service[note_channel]').value).to have_content('4') + expect(page.find_field(name: 'service[tag_push_channel]').value).to have_content('5') + expect(page.find_field(name: 'service[pipeline_channel]').value).to have_content('6') + expect(page.find_field(name: 'service[wiki_page_channel]').value).to have_content('7') end end end |