Sha256: eb561160f3dbf112921fc6b4e3b3510fd6380f58e638858bb4931093bb19699b
Contents?: true
Size: 1.09 KB
Versions: 11
Compression:
Stored size: 1.09 KB
Contents
# frozen_string_literal: true require 'spec_helper' feature 'web services tools' do feature 'when wms/wfs are provided', js: true do scenario 'shows up in tools' do visit solr_document_path 'stanford-cg357zz0321' expect(page).to have_css 'li.web_services a', text: 'Web services' click_link 'Web services' within '.modal-body' do expect(page).to have_css 'input', count: 4 expect(page).to have_css 'label', text: 'Web Feature Service (WFS)' expect(page).to have_css 'input[value="https://geowebservices-restricted.stanford.edu/geoserver/wfs"]' expect(page).to have_css 'input[value="druid:cg357zz0321"]', count: 2 expect(page).to have_css 'label', text: 'Web Mapping Service (WMS)' expect(page).to have_css 'input[value="https://geowebservices-restricted.stanford.edu/geoserver/wms"]' end end end feature 'no wms or wfs provided' do scenario 'does not show up in tools' do visit solr_document_path 'mit-001145244' expect(page).not_to have_css 'li.web_services a', text: 'Web services' end end end
Version data entries
11 entries across 11 versions & 1 rubygems