2019-07-25 01:24:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-21 16:05:44 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-03 14:08:28 -04:00
|
|
|
RSpec.describe 'User activates Packagist' do
|
2022-02-09 04:13:26 -05:00
|
|
|
include_context 'project integration activation'
|
2017-09-21 16:05:44 -04:00
|
|
|
|
|
|
|
before do
|
2020-04-06 05:09:17 -04:00
|
|
|
stub_request(:post, /.*packagist.org.*/)
|
2017-09-21 16:05:44 -04:00
|
|
|
end
|
|
|
|
|
2022-02-09 04:13:26 -05:00
|
|
|
it 'activates integration', :js do
|
2020-04-06 05:09:17 -04:00
|
|
|
visit_project_integration('Packagist')
|
2017-09-21 16:05:44 -04:00
|
|
|
fill_in('Username', with: 'theUser')
|
|
|
|
fill_in('Token', with: 'verySecret')
|
2020-04-06 05:09:17 -04:00
|
|
|
|
|
|
|
click_test_then_save_integration
|
2017-09-21 16:05:44 -04:00
|
|
|
|
2020-09-15 14:09:43 -04:00
|
|
|
expect(page).to have_content('Packagist settings saved and active.')
|
2017-09-21 16:05:44 -04:00
|
|
|
end
|
|
|
|
end
|