answer_spec.rb 503 B

12345678910111213141516171819
  1. require 'rails_helper'
  2. RSpec.describe 'Public Knowledge Base answer', type: :system, authenticated_as: false do
  3. include_context 'basic Knowledge Base'
  4. context 'video content' do
  5. before do
  6. published_answer_with_video
  7. end
  8. it 'shows video player' do
  9. visit help_answer_path(primary_locale.system_locale.locale, category, published_answer_with_video)
  10. iframe = find('iframe')
  11. expect(iframe['src']).to start_with('https://www.youtube.com/embed/')
  12. end
  13. end
  14. end