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

feature 'Muted Video' do
  let(:vod_url) { "/?video=171980172" }
  let(:muted_segment_position) { 17012 }

  scenario "is not interrupted in the muted part" do
    skip('currently takes too long, options discussed on VP-3092')
    PlayerPage.visit_with_localstore_settings vod_url
    expect(PlayerUI.playback_started?).to be_truthy
    PlayerUI.seek_to_position(muted_segment_position)
    2.times { expect(PlayerUI.smooth_playhead?(10)).to be_truthy }
  end
end
