require_relative 'requires'

username = 'qa_moba'

describe 'I can see followed channels' do

  after(:each) do
    back
    sleep(1)
  end

  it 'in following directory' do
    login_page.nav_login(username)

    game_directory.dismiss_live_notifications

    wait{xpath(following_page.following_directory).click}

    wait{xpath(following_page.following_nav_bar).displayed?}
    expect(xpath(following_page.following_nav_bar).text).to eq 'Following'

    xpath(following_page.followed_channels).click
    wait{expect(xpath(following_page.following_count).displayed?).to be_true}
  end
end
