<commit_before>require 'rails_helper'

# Wait one second after loading a path
# Allows React to properly load the page
# Remove this after implementing server-side rendering
def js_visit(path)
  visit path
  sleep 1
end

describe 'Students Page', type: :feature, js: true do
  before do
    course = create(:course,
                    id: 10001,
                    title: 'This.course',
                    slug: 'This_university.foo/This.course_(term_2015)',
                    start: 3.months.ago,
                    end: 3.months.from_now,
                    school: 'This university.foo',
                    term: 'term 2015',
                    listed: 1,
                    description: 'This is a great course')
    cohort = create(:cohort)
    course.cohorts << cohort
<commit_msg>using selenium fixes this test; suspicious<commit_after>require 'rails_helper'

# Wait one second after loading a path
# Allows React to properly load the page
# Remove this after implementing server-side rendering
def js_visit(path)
  visit path
  sleep 1
end

describe 'Students Page', type: :feature, js: true do
  before do
    include Devise::TestHelpers, type: :feature
    Capybara.current_driver = :selenium
    course = create(:course,
                    id: 10001,
                    title: 'This.course',
                    slug: 'This_university.foo/This.course_(term_2015)',
                    start: 3.months.ago,
                    end: 3.months.from_now,
                    school: 'This university.foo',
                    term: 'term 2015',
                    listed: 1,
                    description: 'This is a great course')
    cohort = create(:cohort)
    course.cohorts << cohort

{'fraction_non_alphanumeric': 0.0847457627118644, 'fraction_numerical': 0.019871420222092345, 'mean_word_length': 1.8821548821548821, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '6066469', 'n_tokens_mistral': 511, 'n_tokens_neox': 439, 'n_words': 149}