facebook_spec.rb 558 B

12345678910111213141516171819202122
  1. require 'rails_helper'
  2. RSpec.describe 'Manage > Channels > Facebook', type: :system do
  3. context 'when configuring app' do
  4. before { visit '/#channels/facebook' }
  5. it 'works', :use_vcr do
  6. within :active_content do
  7. click '.btn--success'
  8. in_modal do
  9. fill_in 'application_id', with: ENV['FACEBOOK_APPLICATION_ID']
  10. fill_in 'application_secret', with: ENV['FACEBOOK_APPLICATION_SECRET']
  11. click '.btn--success'
  12. end
  13. expect(page).to have_text('Configure App')
  14. end
  15. end
  16. end
  17. end