<commit_before>require 'rails_helper'

describe 'Preservation Events search page' do
  before { 12.times { create(:event) } }

  context 'with no user action' do
    before { visit 'preservation/events' }

    it 'displays up 10 results by default' do
      expect(page).to have_css('li.document', count: 10)
    end<commit_msg>Adds more specs for search page<commit_after>require 'rails_helper'

describe 'Preservation Events search page' do
  before { 12.times { create(:event) } }

  context 'default display' do
    before { visit 'preservation/events' }

    it 'displays up to 10 results' do
      expect(page).to have_css('li.document', count: 10)
    end

    xit 'displays the PREMIS type for the title' do
    end

    it 'displays the PREMIS agent' do
      expect(page).to have_css('dt.blacklight-premis_agent_ssim', count: 10)
    end

    it 'displays the date of the event' do
      # TODO: avoid using hardcoded dynamic solr suffix here
      expect(page).to have_css('dt.blacklight-premis_event_date_time_dtsim', count: 10)
    end
{'fraction_non_alphanumeric': 0.09351145038167939, 'fraction_numerical': 0.015267175572519083, 'mean_word_length': 3.5411255411255413, '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': '5556342', 'n_tokens_mistral': 361, 'n_tokens_neox': 321, 'n_words': 109}