module Dash
  def dash_route(path = '')
    URI.join ATC_URL, path
  end

  def dash_login
    visit dash_route('/sky/login?redirect_uri=/')
    click_button 'Log in with Username'
    fill_in 'password', with: ATC_USERNAME
    fill_in 'login', with: ATC_PASSWORD
    click_button 'Login'
    expect(page).to_not have_content 'login'
  end
end

module Dash
  def dash_route(path = '')
    URI.join ATC_URL, path
  end

  def dash_login
    visit dash_route('/sky/login?redirect_uri=/')
    click_button 'Username/Password'
    fill_in 'password', with: ATC_USERNAME
    fill_in 'login', with: ATC_PASSWORD
    click_button 'login'
    expect(page).to_not have_content 'login'
  end
end

Fix acceptance tests with new UI values
Fix acceptance tests with new UI values

Signed-off-by: Mark Huang <222d07b3281cbd31b38f93d23c330586c713e995@pivotal.io>
