From 5058af04352072773bfc193d72e8ecb0874b9f59 Mon Sep 17 00:00:00 2001 From: Nicholas Wolf Date: Tue, 24 Sep 2024 14:30:45 -0400 Subject: [PATCH] Updating show_page test to reflect expected changes in LiDAR alert --- spec/features/show_page_spec.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/spec/features/show_page_spec.rb b/spec/features/show_page_spec.rb index e666b26d..931624ca 100644 --- a/spec/features/show_page_spec.rb +++ b/spec/features/show_page_spec.rb @@ -46,13 +46,6 @@ expect(page).to have_selector 'div.alert.alert-warning' end - it 'includes survey link' do - visit solr_document_path 'nyu-2451-38684' - expect(page).to have_link( - 'this brief survey', href: 'https://nyu.qualtrics.com/jfe/form/SV_42ddIXjT0CtaqAR' - ) - end - it 'does not display download' do visit solr_document_path 'nyu-2451-38684' expect(page).not_to have_content 'Download' @@ -60,7 +53,9 @@ it 'includes DOI for citation' do visit solr_document_path 'nyu-2451-38684' - expect(page).to have_content 'Please cite this study using the DOI' + expect(page).to have_link( + 'doi:10.17609/N8MQ0N', href: 'https://doi.org/10.17609/N8MQ0N' + ) end end