require 'spec_helper'

feature 'Twitch user search', :type => :feature do
  before { WebMock.allow_net_connect! }
  after { WebMock.disable_net_connect! }

  scenario 'User searches for an existing twitch user' do
    visit '/'

    sign_in

    expect(page).to have_text('User Search')

    fill_in 'text', :with => 'kappa'
    click_button 'Search'

    expect(page).to have_text('Id 20037')
  end
end
