spec/features/axe_spec.rb in blacklight-7.40.0 vs spec/features/axe_spec.rb in blacklight-8.0.0.beta1
- old
+ new
@@ -19,20 +19,15 @@
end
expect(page).to be_accessible
end
- it 'validates the advanced search form' do
- visit advanced_search_catalog_path
- expect(page).to be_accessible.excluding('.search-query-form')
- 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)
+ be_axe_clean.excluding('.tt-hint').skipping(skipping + [('color-contrast' if defined?(Bootstrap) && Bootstrap::VERSION < '5')].compact)
end
end