Sha256: 90f597d32fdbb9357200446be2cc48bed0ea16a39397e2c6bcee01d1c7706dcc

Contents?: true

Size: 592 Bytes

Versions: 4

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

feature 'search results display document iconography' do
  scenario 'when viewing result row' do
    # Search returns fixture stanford-cg357zz0321
    visit search_catalog_path(
      search_field: 'all_fields',
      q: 'stanford-cg357zz0321'
    )
    first_result = page.all('span.status-icons > span')
    expect(first_result[0][:class]).to include 'blacklight-icon-dataset'
    expect(first_result[1][:class]).to include 'blacklight-icon-stanford'
    expect(first_result[2][:class]).to include 'blacklight-icon-restricted'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geoblacklight-4.0.0 spec/features/search_results_icons_spec.rb
geoblacklight-4.0.0.pre.rc3 spec/features/search_results_icons_spec.rb
geoblacklight-4.0.0.pre.rc2 spec/features/search_results_icons_spec.rb
geoblacklight-4.0.0.pre.rc1 spec/features/search_results_icons_spec.rb