Skip to content

Commit

Permalink
Mark the highligthing specs as pending until we resolve pulibrary/pul…
Browse files Browse the repository at this point in the history
  • Loading branch information
christinach committed Dec 1, 2023
1 parent d0b9496 commit 44564ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/system/searching_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
before do
allow(Flipflop).to receive(:highlighting?).and_return(true)
end

it 'renders a title with an em tag around the search term' do
# mark as pending until we resolve https://github.com/pulibrary/pul_solr/issues/388
xit 'renders a title with an em tag around the search term' do
visit '/catalog?q=black+teenagers'
expect(page).to have_selector('#documents > article.blacklight-book.document.document-position-1 > div > div.record-wrapper > div > h3 > a > em:nth-child(2)', text: 'black')
expect(page).to have_selector('#documents > article.blacklight-book.document.document-position-1 > div > div.record-wrapper > div > h3 > a > em:nth-child(4)', text: 'teenagers')
Expand All @@ -29,7 +29,8 @@
allow_any_instance_of(Blacklight::Configuration::Field).to receive(:if).and_return(true)
end
let(:config) { Blacklight::Configuration.new }
it 'renders lc_subject_display with an em tag around the search term' do
# mark as pending until we resolve https://github.com/pulibrary/pul_solr/issues/388
xit 'renders lc_subject_display with an em tag around the search term' do
visit '/catalog?q=African+American'
expect(page).to have_selector('#documents > article.blacklight-book.document.document-position-1 > div > div.record-wrapper > ul > li:nth-child(3) > a.search-name > em:nth-child(2)', text: 'African')
expect(page).to have_selector('#documents > article.blacklight-book.document.document-position-1 > div > div.record-wrapper > ul > li:nth-child(3) > a.search-name > em:nth-child(4)', text: 'American')
Expand Down

0 comments on commit 44564ad

Please sign in to comment.