require './core/base/spec_helper'

describe 'Games Directory' do

  before(:each) do
    visit('/')
  end

  it 'loads' do
    expect(page).to have_css(DirectoryPage.games_list)
  end
end

describe 'Channels Directory' do

  before(:each) do
    visit('/')
  end

  it 'can be accessed via Games Directory' do
    skip('Turn off JS for this test')
    expect(page).to have_css(DirectoryPage.games_list)

    DirectoryPage.click_first_item
    expect(page).to have_css(DirectoryPage.channel_directory)
    expect(page).to have_css(DirectoryPage.box_art)
  end
end
