From 44564adb4610fd8decc6c65b6043ce59156e6bc4 Mon Sep 17 00:00:00 2001 From: Christina Chortaria Date: Fri, 1 Dec 2023 08:28:07 -0500 Subject: [PATCH] Mark the highligthing specs as pending until we resolve https://github.com/pulibrary/pul_solr/issues/388 --- spec/system/searching_spec.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/system/searching_spec.rb b/spec/system/searching_spec.rb index a536fd069..0086d6b5f 100644 --- a/spec/system/searching_spec.rb +++ b/spec/system/searching_spec.rb @@ -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') @@ -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')