Skip to content

Commit

Permalink
Updating show_page test to reflect expected changes in LiDAR alert
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Wolf authored and nmwolf committed Sep 25, 2024
1 parent a464a17 commit 5058af0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions spec/features/show_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,16 @@
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'
end

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

Expand Down

0 comments on commit 5058af0

Please sign in to comment.