Sha256: 8f253727f33d234ca45da2630d17f02b37a4719e3544c44a6285f3c5e31760f9
Contents?: true
Size: 945 Bytes
Versions: 3
Compression:
Stored size: 945 Bytes
Contents
require 'spec_helper' require 'features_shared' RSpec.describe 'newspaper title search' do include_context "fixtures_for_features" # @title1 comes from fixtures_for_features before do visit hyrax_newspaper_title_path(@title1.id) fill_in "q_issues", with: title_base_memo end it 'returns pages for this title' do click_button('issue-search') within "#search-results" do expect(page).to have_content "#{title1_issue1_title_memo}: Page 1" expect(page).to have_content "#{title1_issue1_title_memo}: Page 2" expect(page).not_to have_content "#{title2_issue1_title_memo}: Page 1" end end it 'returns only front pages if checked' do check 'f_first_page_bsi_' click_button('issue-search') within "#search-results" do expect(page).to have_content "#{title1_issue1_title_memo}: Page 1" expect(page).not_to have_content "#{title1_issue1_title_memo}: Page 2" end end end
Version data entries
3 entries across 3 versions & 1 rubygems