Sha256: 26a324f9d87da9f3ca2fcf5f85a5d69091e489319949a2f3b065285a2482bcad

Contents?: true

Size: 839 Bytes

Versions: 24

Compression:

Stored size: 839 Bytes

Contents

# frozen_string_literal: true

RSpec.describe 'Accessibility testing', api: false, js: true do
  it 'validates the home page' do
    visit root_path
    expect(page).to be_accessible
  end

  it 'validates the catalog page' do
    visit root_path
    fill_in "q", with: 'history'
    click_button 'search'

    expect(page).to be_accessible

    within '.card.blacklight-language_ssim' do
      click_button 'Language'
      click_link "Tibetan"
    end

    expect(page).to be_accessible
  end

  it 'validates the single results page' do
    visit solr_document_path('2007020969')
    expect(page).to be_accessible
  end

  def be_accessible(skipping: [])
    # typeahead does funny things with the search bar
    be_axe_clean.excluding('.tt-hint').skipping(skipping + [('color-contrast' if Bootstrap::VERSION < '5')].compact)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
blacklight-7.33.1 spec/features/axe_spec.rb
blacklight-7.33.0 spec/features/axe_spec.rb
blacklight-7.32.0 spec/features/axe_spec.rb
blacklight-7.31.0 spec/features/axe_spec.rb
blacklight-7.30.0 spec/features/axe_spec.rb
blacklight-7.29.0 spec/features/axe_spec.rb
blacklight-7.28.0 spec/features/axe_spec.rb
blacklight-7.27.1 spec/features/axe_spec.rb
blacklight-7.27.0 spec/features/axe_spec.rb
blacklight-7.26.1 spec/features/axe_spec.rb
blacklight-7.26.0 spec/features/axe_spec.rb
blacklight-7.25.3 spec/features/axe_spec.rb
blacklight-7.25.2 spec/features/axe_spec.rb
blacklight-7.25.1 spec/features/axe_spec.rb
blacklight-7.25.0 spec/features/axe_spec.rb
blacklight-7.24.0 spec/features/axe_spec.rb
blacklight-7.23.0.1 spec/features/axe_spec.rb
blacklight-7.23.0 spec/features/axe_spec.rb
blacklight-7.22.2 spec/features/axe_spec.rb
blacklight-7.22.1 spec/features/axe_spec.rb