2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'User activates Pushover' 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, /.*api.pushover.net.*/)
|
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('Pushover')
|
2018-03-17 18:26:18 +05:30
|
|
|
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')
|
2020-04-22 19:07:51 +05:30
|
|
|
|
|
|
|
click_test_integration
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
expect(page).to have_content('Pushover activated.')
|
|
|
|
end
|
|
|
|
end
|