debian-mirror-gitlab/spec/features/projects/integrations/user_activates_pushover_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
685 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'
2023-03-04 22:38:38 +05:30
RSpec.describe 'User activates Pushover', feature_category: :integrations do
2022-04-04 11:22:00 +05:30
include_context 'project integration activation'
2018-03-17 18:26:18 +05:30
before do
2020-04-22 19:07:51 +05:30
stub_request(:post, /.*api.pushover.net.*/)
2018-03-17 18:26:18 +05:30
end
2022-04-04 11:22:00 +05:30
it 'activates integration', :js do
2020-04-22 19:07:51 +05:30
visit_project_integration('Pushover')
2021-04-29 21:17:54 +05:30
fill_in('API key', with: 'verySecret')
2018-03-17 18:26:18 +05:30
fill_in('User key', with: 'verySecret')
fill_in('Device', with: 'myDevice')
2021-10-27 15:23:28 +05:30
select('High priority', from: 'Priority')
2018-03-17 18:26:18 +05:30
select('Bike', from: 'Sound')
2020-04-22 19:07:51 +05:30
2020-11-24 15:15:51 +05:30
click_test_then_save_integration(expect_test_to_fail: false)
2018-03-17 18:26:18 +05:30
2020-11-24 15:15:51 +05:30
expect(page).to have_content('Pushover settings saved and active.')
2018-03-17 18:26:18 +05:30
end
end