<commit_before>require 'rails_helper'


feature "user sessions" do
  before do
    @user = User.create!(name: "<NAME>", email: "<EMAIL>", password: "<PASSWORD>" )
  end
  scenario "when user logs in" do
    visit '/'
    click_on 'Login'
    #will need to add something here to tell it to click Login once we test further
    fill_in 'email', :with => "<EMAIL>"
    fill_in 'password', :with => "<PASSWORD>"
    click_button 'Login'
    expect(page).to have_text('Logout')
  end

  scenario "when user clicks sign up" do
    visit '/'
    click_on 'Signup'
    expect(page).to have_text('Sign Up')
  end

  scenario "when user signs up with valid info" do
    visit '/'
    click_on 'Signup'
    fill_in 'Full Name', :with => "<NAME>"
    fill_in 'Email', :with => "<EMAIL>"
    fill_in 'Password', :with => "<PASSWORD>"
    click_on 'Sign Up'
    expect(page).to have_text('Logout')
  end

  scenario "user can't see dashboard button without being signed in" do
    visit '/'<commit_msg>removing comment task that had already been completed<commit_after>require 'rails_helper'


feature "user sessions" do
  before do
    @user = User.create!(name: "<NAME>", email: "<EMAIL>", password: "<PASSWORD>" )
  end
  scenario "when user logs in" do
    visit '/'
    click_on 'Login'
    fill_in 'email', :with => "<EMAIL>"
    fill_in 'password', :with => "<PASSWORD>"
    click_button 'Login'
    expect(page).to have_text('Logout')
  end

  scenario "when user clicks sign up" do
    visit '/'
    click_on 'Signup'
    expect(page).to have_text('Sign Up')
  end

  scenario "when user signs up with valid info" do
    visit '/'
    click_on 'Signup'
    fill_in 'Full Name', :with => "<NAME>"
    fill_in 'Email', :with => "<EMAIL>"
    fill_in 'Password', :with => "<PASSWORD>"
    click_on 'Sign Up'
    expect(page).to have_text('Logout')
  end

  scenario "user can't see dashboard button without being signed in" do
    visit '/'
{'fraction_non_alphanumeric': 0.13716356107660455, 'fraction_numerical': 0.0, 'mean_word_length': 3.3536036036036037, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2207590', 'n_tokens_mistral': 634, 'n_tokens_neox': 625, 'n_words': 213}