<commit_before>require 'spec_helper'

describe 'citation', type: :feature, js: true, vcr: true do
  it 'no citation information' do
    visit '/works/10.0311/fk2/e11643a99d903d0ccfc2d523b344d9ff'

    expect(page).to have_css("#summary-citations", text: "No citations were reported. No usage information was reported.")
  end

  it 'show summary information list view' do
    visit '/works?query=dufek+AND+intrusion'

    expect(page).to have_css("#summary-citations", text: "4 citations")
    expect(page).to have_css("#summary-views", text: "No usage information was reported.")
  end

  it 'show summary information' do
    visit '/works/10.91819/71718'

    expect(page).to have_css("#summary-citations", text: "4 citations")
    expect(page).to have_css("#summary-views", text: "No usage information was reported.")
  end

  it 'show citation chart' do
    visit '/works/10.91819/71718'

    expect(page).to have_css("#citations-tab", text: "4 Citations")
    expect(page).to have_css("small", text: "4 citations reported since publication in 2011.")
    expect(page).to have_css("svg", count: 1)
  end
end<commit_msg>comment out tests for citations. #160<commit_after>require 'spec_helper'

describe 'citation', type: :feature, js: true, vcr: true do
  it 'no citation information' do
    visit '/works/10.0311/fk2/e11643a99d903d0ccfc2d523b344d9ff'

    expect(page).to have_css("#summary-citations", text: "No citations were reported. No usage information was reported.")
  end

  # it 'show summary information list view' do
  #   visit '/works?query=dufek+AND+intrusion'

  #   expect(page).to have_css("#summary-citations", text: "4 citations")
  #   expect(page).to have_css("#summary-views", text: "No usage information was reported.")
  # end

  # it 'show summary information' do
  #   visit '/works/10.91819/71718'

  #   expect(page).to have_css("#summary-citations", text: "4 citations")
  #   expect(page).to have_css("#summary-views", text: "No usage information was reported.")
  # end

  # it 'show citation chart' do
  #   visit '/works/10.91819/71718'

  #   expect(page).to have_css("#citations-tab", text: "4 Citations")
  #   expect(page).to have_css("small", text: "4 citations reported since publication in 2011.")
  #   expect(page).to have_css("svg", count: 1)
  # end
end
{'fraction_non_alphanumeric': 0.13900955690703737, 'fraction_numerical': 0.052562988705473504, 'mean_word_length': 4.270022883295194, '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': '4211715', 'n_tokens_mistral': 835, 'n_tokens_neox': 733, 'n_words': 210}