Sha256: cf0b19438c9a93ef5018fe0ad0cb36fe52d525d8ce61da16afec953a669fa282

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

feature 'Search' do
  scenario 'Suppressed records are hidden' do
    visit '/?q=Sanborn+Map+Company'
    expect(page).to have_css '.document', count: 1
  end

  scenario 'When searching child records from a parent record, supressed records are not hidden', js: true do
    visit '/catalog/princeton-1r66j405w'

    within('.card.relations.relationship-source_descendants') do
      expect(page).to have_link(href: /f%5Bdct_source_sm%5D/)
    end

    click_link 'Browse all 4 records...'
    expect(page).to have_css '.document', count: 4
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geoblacklight-4.0.0.pre.alpha.3 spec/features/search_spec.rb
geoblacklight-4.0.0.pre.alpha.2 spec/features/search_spec.rb