Sha256: e463b802d68161e76785d019c482221c60dc6b08ba619a2042579ff60b465421
Contents?: true
Size: 1.23 KB
Versions: 4
Compression:
Stored size: 1.23 KB
Contents
require 'spec_helper' feature 'Metadata tools' do feature 'when metadata references are available', js: :true do scenario 'shows up as HTML' do visit solr_document_path 'columbia-columbia-landinfo-global-aet' expect(page).to have_css 'li.metadata a', text: 'Metadata' click_link 'Metadata' using_wait_time 15 do within '.metadata-view' do expect(page).to have_css '.pill-metadata', text: 'FGDC' expect(page).to have_css 'dt', text: 'Identification Information' expect(page).to have_css 'dt', text: 'Metadata Reference Information' end end end scenario 'shows up as XML' do visit solr_document_path 'stanford-cg357zz0321' expect(page).to have_css 'li.metadata a', text: 'Metadata' click_link 'Metadata' using_wait_time 15 do within '.metadata-view' do expect(page).to have_css '.pill-metadata', text: 'MODS' expect(page).to have_css '.CodeRay' end end end end feature 'when metadata references are not available' do scenario 'is not in tools' do visit solr_document_path 'mit-us-ma-e25zcta5dct-2000' expect(page).not_to have_css 'li.metadata a', text: 'Metadata' end end end
Version data entries
4 entries across 4 versions & 1 rubygems