Sha256: dbf5e5c40f968dd58e2cd428d49a681fc9f8cda933030659bfbeff7d38b1e828

Contents?: true

Size: 1000 Bytes

Versions: 9

Compression:

Stored size: 1000 Bytes

Contents

require 'spec_helper'

feature 'web services tools' do
  feature 'when wms/wfs are provided', js: true do
    scenario 'shows up in tools' do
      visit catalog_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: 2
        expect(page).to have_css 'label', text: 'Web Feature Service (WFS) link'
        expect(page).to have_css 'input[value="http://geowebservices-restricted.stanford.edu/geoserver/wfs"]'
        expect(page).to have_css 'label', text: 'Web Mapping Service (WMS) link'
        expect(page).to have_css 'input[value="http://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 catalog_path 'mit-001145244'
      expect(page).to_not have_css 'li.web_services a', text: 'Web services'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
geoblacklight-0.10.2 spec/features/web_services_modal_spec.rb
geoblacklight-0.10.1 spec/features/web_services_modal_spec.rb
geoblacklight-0.10.0 spec/features/web_services_modal_spec.rb
geoblacklight-0.9.2 spec/features/web_services_modal_spec.rb
geoblacklight-0.9.1 spec/features/web_services_modal_spec.rb
geoblacklight-0.9.0 spec/features/web_services_modal_spec.rb
geoblacklight-0.8.0 spec/features/web_services_modal_spec.rb
geoblacklight-0.7.1 spec/features/web_services_modal_spec.rb
geoblacklight-0.7.0 spec/features/web_services_modal_spec.rb