<commit_before>require 'spec_helper'

feature 'guest visits homepage' do
        scenario "they see username and password fields" do
                visit '/'
                expect(page).to have_content "username:"
                expect(page).to have_content "password:"                
                expect(page).to have_content "Create a new Account"                
        end
end


feature 'guest signs in' do
  scenario 'they click on sign in after filling in username/pw' do
      visit '/'
      fill_in "username", with: "bob"
      fill_in "password", with: "<PASSWORD>"
      click_on "register"
      expect(page).to have_content "welcome"
  end
end

<commit_msg>added additional capybara tests<commit_after>require 'spec_helper'

feature 'guest visits homepage' do
        scenario "they see username and password fields" do
                visit '/'
                expect(page).to have_content "username:"
                expect(page).to have_content "password:"                
                expect(page).to have_content "Create a new Account"                
        end
end


feature 'guest signs in' do
  background do
    User.create!(:email => '<EMAIL>', :username =>'bob', :password_hash => '<PASSWORD>')
  end

  scenario 'they see a page with account information' do
      visit '/'
      fill_in "username", with: "bob"
      fill_in "password", with: "<PASSWORD>"
      click_on "register"
      expect(page).to have_content "welcome #{:username}"
  end
end


feature 'guest creates account' do
  scenario 'they fill in info' do
    visit '/register'
      fill_in "username", with: "bob"
      fill_in "password", with: "<PASSWORD>"
      fill_in "email", with: "<EMAIL>"

      click_on "register"
      expect(page).to have_content "Welcome 'bob'"
  end

  scenario 'they click on one of the canvases theyve made before' do 
  end

end


{'fraction_non_alphanumeric': 0.09829059829059829, 'fraction_numerical': 0.0, 'mean_word_length': 2.338680926916221, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 12, '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': '2129541', 'n_tokens_mistral': 538, 'n_tokens_neox': 520, 'n_words': 181}