@@ -851,8 +851,18 @@ def source_filter_count(controller)
851851
852852 get '/results?q=test&tab=primo'
853853 assert_response :success
854- assert_select '.alert' , count : 1
855- assert_select '.alert' , text : /API Error/
854+ assert_select 'aside[role="alert"]' , count : 1
855+ assert_select 'aside.primo-unavailable h3' , text : /Hmm, we seem to be having difficulties/
856+ assert_select 'aside.primo-unavailable' , text : /In the meantime, try searching these tools directly/
857+ assert_select 'aside.primo-unavailable' , text : /MIT's WorldCat: Books and media/
858+ assert_select 'aside.primo-unavailable' , text : /Google Scholar: Articles/
859+ assert_select 'aside.primo-unavailable' , text : /ArchivesSpace: MIT archives/
860+ assert_select 'aside.primo-unavailable' , text : /DSpace@MIT: MIT research/
861+ assert_select 'aside.primo-unavailable a[href="https://libraries.mit.edu/worldcat"]' , text : /MIT's WorldCat/
862+ assert_select 'aside.primo-unavailable a[href="https://scholar.google.com/"]' , text : /Google Scholar/
863+ assert_select 'aside.primo-unavailable a[href="https://archivesspace.mit.edu/"]' , text : /ArchivesSpace/
864+ assert_select 'aside.primo-unavailable a[href="https://dspace.mit.edu/"]' , text : /DSpace@MIT/
865+ assert_select 'aside.primo-unavailable a[href="https://libraries.mit.edu/ask/"]' , text : /Ask Us/
856866 end
857867
858868 test 'results uses simplified search summary for USE app' do
@@ -974,7 +984,8 @@ def source_filter_count(controller)
974984
975985 get '/results?q=test&tab=all'
976986 assert_response :success
977- assert_select '.alert' , text : /Primo API Error/
987+ assert_select 'aside.primo-unavailable h3' , text : /Hmm, we seem to be having difficulties/
988+ assert_select 'aside.primo-unavailable' , text : /In the meantime, try searching these tools directly/
978989 end
979990
980991 test 'all tab is default when no tab specified' do
0 commit comments