Sha256: 21906948588aeb0e13e0daed571eec26668aed43950f41ec7475dd0d2606872b

Contents?: true

Size: 810 Bytes

Versions: 16

Compression:

Stored size: 810 Bytes

Contents

require 'spec_helper'

feature 'Layer opacity', js: true do
  scenario 'WMS layer should have opacity control' do
    visit solr_document_path('mit-us-ma-e25zcta5dct-2000')
    expect(page).to have_css('div.opacity-text', text: '75%')
    expect(page.all('div.leaflet-layer')[1][:style]).to match(/opacity: 0.75;/)
  end

  scenario 'ESRI image service layer should have opacity control' do
    visit solr_document_path('princeton-test-oregon-naip-2011')
    expect(page).to have_css('div.opacity-text', text: '75%')
    expect(page.find('img.leaflet-image-layer', match: :first)[:style]).to match(/opacity: 0.75;/)
  end

  scenario 'IIIF layer should not have opacity control' do
    visit solr_document_path('princeton-02870w62c')
    expect(page).not_to have_css('div.opacity-text', text: '75%')
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
geoblacklight-1.8.0 spec/features/layer_opacity_spec.rb
geoblacklight-1.7.1 spec/features/layer_opacity_spec.rb
geoblacklight-1.7.0 spec/features/layer_opacity_spec.rb
geoblacklight-1.6.0 spec/features/layer_opacity_spec.rb
geoblacklight-1.5.1 spec/features/layer_opacity_spec.rb
geoblacklight-1.5.0 spec/features/layer_opacity_spec.rb
geoblacklight-1.4.0 spec/features/layer_opacity_spec.rb
geoblacklight-1.3.0 spec/features/layer_opacity_spec.rb
geoblacklight-1.2.0 spec/features/layer_opacity_spec.rb
geoblacklight-1.1.2 spec/features/layer_opacity_spec.rb
geoblacklight-1.1.0 spec/features/layer_opacity_spec.rb
geoblacklight-1.0.3 spec/features/layer_opacity_spec.rb
geoblacklight-1.0.2 spec/features/layer_opacity_spec.rb
geoblacklight-1.0.1 spec/features/layer_opacity_spec.rb
geoblacklight-1.0.0 spec/features/layer_opacity_spec.rb
geoblacklight-1.0.0.pre3 spec/features/layer_opacity_spec.rb