require './core/base/spec_helper'
require './core/twitch/video_player/player_core'
require './core/configs/bmp_config'

feature 'Tracking Events- Look for a payload event for name: video error' do

  let(:player_url) { PlayerCoreData.player_core_url }
  let(:subscriber_stream) { "#{VideoPlayerData.player_domain_url}/videos/171286999" }
  let(:subscriber_message) { 'ErrorAuthorization' }

  scenario 'stream is subscriber only' do
    skip 'QE-713 subscriber stream not available'
    visit player_url
    expect(PlayerCore).to have_video_container
    expect(PlayerCore.check_offline_error(subscriber_stream)['type']).to eql(subscriber_message)
  end
end
