require_relative 'requires'

following_directory = '//XCUIElementTypeStaticText[@name="Following"]'

describe 'I can see followed channels' do

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

    wait{xpath(following_directory).displayed?}
    xpath(following_directory).click
    wait{expect(xpath(following_page.following_nav_bar).displayed?).to be_true}
    xpath(following_page.followed_channels).click
    wait{expect(xpath(following_page.followed_channel).displayed?).to be_true}
    login_page.logout
  end
end
