Sha256: 10a341a0c023313104e7337aa44d68b15d8e438b8f60903d7183d81d9865cab8
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
require 'spec_helper' feature 'Index map' do scenario 'displays index map viewer', js: true do visit solr_document_path('stanford-fb897vt9938') # Wait until SVG elements are added expect(page).to have_css '.leaflet-overlay-pane svg' page.first('svg g path').click within '.index-map-info' do expect(page).to have_css 'h3', text: 'Dabao Kinbōzu -- ダバオ近傍圖' expect(page).to have_css 'a img[src="https://stacks.stanford.edu/image/iiif/zh828kt2136%2Fzh828kt2136_00_0001/full/!400,400/0/default.jpg"]' within 'dl' do expect(page).to have_css 'dt', text: 'Website' expect(page).to have_css 'dd a', text: 'http://purl.stanford.edu/zh828kt2136' expect(page).to have_css 'dt', text: 'Download' expect(page).to have_css 'dd a', text: 'https://embed.stanford.edu/iframe?url=https://purl.stanford.edu/zh828kt2136&hide_title=true#' expect(page).to have_css 'dt', text: 'Record Identifier' expect(page).to have_css 'dd', text: '10532136' expect(page).to have_css 'dt', text: 'Label' expect(page).to have_css 'dd', text: 'SHEET 8' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geoblacklight-1.8.0 | spec/features/index_map_spec.rb |