require 'test_helper'

class CanLoginTest < Capybara::Rails::TestCase
  setup do
    @user = users(:test_user)
    @project = projects(:one)
  end

  scenario 'Has link to GitHub Login', js: true do
    visit login_path
    page.must_have_content('Log in with GitHub')
  end

  scenario 'Can Login and edit using custom account', js: true do
    Capybara.default_max_wait_time = 10
    visit login_path
    fill_in 'Email', with: @user.email
    fill_in 'Password', with: 'password'
    click_button 'Log in using custom account'
    assert page.has_content? 'Signed in!'

    visit edit_project_path(@project)
    choose 'project_english_status_met'
    assert page.find('#english_enough[src*="result_symbol_check"')

    click_on 'Reporting'
    choose 'project_report_process_status_unmet'
    assert page.find('#report_process_enough[src*="result_symbol_x"')
  end
end

require 'test_helper'

class CanLoginTest < Capybara::Rails::TestCase
  setup do
    @user = users(:test_user)
    @project = projects(:one)
  end

  scenario 'Has link to GitHub Login', js: true do
    visit login_path
    page.must_have_content('Log in with GitHub')
  end

  scenario 'Can Login and edit using custom account', js: true do
    Capybara.default_max_wait_time = 10
    visit login_path
    fill_in 'Email', with: @user.email
    fill_in 'Password', with: 'password'
    click_button 'Log in using custom account'
    assert page.has_content? 'Signed in!'

    visit edit_project_path(@project)
    choose 'project_english_status_met'
    assert page.find('#english_enough[src*="result_symbol_check"]')

    click_on 'Reporting'
    choose 'project_report_process_status_unmet'
    assert page.find('#report_process_enough[src*="result_symbol_x"]')
  end
end

Add missing closing brackets to tests (fixing a syntax error)
Add missing closing brackets to tests (fixing a syntax error)

  Fix a trivial syntax error in the can_login_test.
  Remarkably, this syntax error was detected by CircleCI and
  *not* by local testing.  It appears that the version of the web browser
  used by CircleCI is pickier about CSS syntax.

Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>
