Sha256: 2caa60142f8e3420a5711988770ad56fbf975a082ca8e03579f571576fa7ae27

Contents?: true

Size: 547 Bytes

Versions: 21

Compression:

Stored size: 547 Bytes

Contents

require 'spec_helper'

feature 'Layer preview', js: true do
  scenario 'Restricted layer should show bounding box' do
    visit catalog_path('stanford-cg357zz0321')
    expect(Nokogiri::HTML.parse(page.body).css('path').length).to eq 1
  end

  scenario 'Public layer should show wms layer not bounding box' do
    visit catalog_path('mit-us-ma-e25zcta5dct-2000')
    expect(Nokogiri::HTML.parse(page.body).css('path').length).to eq 0
    within '.leaflet-tile-pane' do
      expect(page).to have_css('.leaflet-layer', count: 2)
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
geoblacklight-0.12.1 spec/features/layer_preview_spec.rb
geoblacklight-0.12.0 spec/features/layer_preview_spec.rb
geoblacklight-0.11.1 spec/features/layer_preview_spec.rb
geoblacklight-0.11.0 spec/features/layer_preview_spec.rb
geoblacklight-0.10.2 spec/features/layer_preview_spec.rb
geoblacklight-0.10.1 spec/features/layer_preview_spec.rb
geoblacklight-0.10.0 spec/features/layer_preview_spec.rb
geoblacklight-0.9.2 spec/features/layer_preview_spec.rb
geoblacklight-0.9.1 spec/features/layer_preview_spec.rb
geoblacklight-0.9.0 spec/features/layer_preview_spec.rb
geoblacklight-0.8.0 spec/features/layer_preview_spec.rb
geoblacklight-0.7.1 spec/features/layer_preview_spec.rb
geoblacklight-0.7.0 spec/features/layer_preview_spec.rb
geoblacklight-0.6.2 spec/features/layer_preview_spec.rb
geoblacklight-0.6.1 spec/features/layer_preview_spec.rb
geoblacklight-0.6.0 spec/features/layer_preview_spec.rb
geoblacklight-0.5.1 spec/features/layer_preview_spec.rb
geoblacklight-0.5.0 spec/features/layer_preview_spec.rb
geoblacklight-0.4.2 spec/features/layer_preview_spec.rb
geoblacklight-0.4.1 spec/features/layer_preview_spec.rb