require './core/base/spec_helper'
require './core/twitch/video_player/player_ui'
require './core/twitch/video_player/player_page'

feature "Validating Live stream's" do
  let(:player_url) { VideoPlayerData.player_stream_url }

  before(:each) do
    skip('Fix in progress')
    PlayerPage.visit_with_localstore_settings(player_url)
  end

  scenario "playback stats not to be nil" do
    expect(PlayerUI.playback_stats_values.any? { |stat_name, stat_value| stat_value.nil? }).to be_falsy
  end

  scenario 'playback ui stats not to be nil' do
    PlayerUI.show_advanced_stats
    expect(PlayerUI.ui_stats.any? { |stat_value| stat_value.nil? }).to be_falsy
  end
end
