<commit_before>require 'rspec'

describe 'Student can view review scores in a heat map distribution', js: true do

  before(:each) do
    #Include setup here for pre-test stuff

    # Create a student
    @student = create(:student)

    #Create an assignment

    #Create reviewers

    #Create reviews for the assignment from reviewers

  end

  it 'should be able to views a heat map of review scores' do
    #Log in as the student with an assignment and reviews
    login_as @student.name

    #Select the assignment and follow the link to the heat map
    click_link @assignment.name
    click_link 'Alternate View'

    expect(page).to have_content('Summary Report for Assignment')
  end

end<commit_msg>Added two more tests, still need to finish up factory implementation.<commit_after>require 'rspec'

describe 'Student can view review scores in a heat map distribution', js: true do

  before(:each) do
    #Include setup here for pre-test stuff

    # Create a student
    @student = create(:student)

    #Create an assignment

    #Create reviewers

    #Create reviews for the assignment from reviewers

  end

  it 'should be able to view a heat map of review scores' do
    #Log in as the student with an assignment and reviews
    login_as @student.name

    #Select the assignment and follow the link to the heat map
    click_link @assignment.name
    click_link 'Alternate View'

    expect(page).to have_content('Summary Report for Assignment')
  end

  it 'should be able to follow the link to a specific review' do
    #Log in as the student with an assignment and reviews
    login_as @student.name

    #Select the assignment and follow the link to the heat map
    click_link @assignment.name
    click_link 'Review 1'

    expect(page).to have_content('Review for')
  end

  it 'should be able to toggle the question list' do
    #Log in as the student with an assignment and reviews
    login_as @student.name

    #Select the assignment and follow the link to the heat map
    click_link @assignment.name
    click_link 'toggle question list' #Is this a link or a button or what? Make sure this works.

    expect(page).to have_content('Question')
  end

end
{'fraction_non_alphanumeric': 0.05443732845379689, 'fraction_numerical': 0.0004574565416285453, 'mean_word_length': 3.3306930693069305, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3603651', 'n_tokens_mistral': 606, 'n_tokens_neox': 572, 'n_words': 289}