Sha256: f7d0ad3d2554ea0ffe15e645061645b7fd621d1f358c621d8643cc4be1d99fd1

Contents?: true

Size: 889 Bytes

Versions: 14

Compression:

Stored size: 889 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

feature 'Layer opacity', js: true do
  scenario 'WMS layer should have opacity control' do
    visit solr_document_path('mit-f6rqs4ucovjk2')
    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
    skip 'CORS error - Purdue web services are down'
    visit solr_document_path('32653ed6-8d83-4692-8a06-bf13ffe2c018')
    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

14 entries across 14 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 spec/features/layer_opacity_spec.rb
geoblacklight-3.8.0 spec/features/layer_opacity_spec.rb
geoblacklight-4.0.0 spec/features/layer_opacity_spec.rb
geoblacklight-4.0.0.pre.rc3 spec/features/layer_opacity_spec.rb
geoblacklight-3.7.0 spec/features/layer_opacity_spec.rb
geoblacklight-4.0.0.pre.rc2 spec/features/layer_opacity_spec.rb
geoblacklight-4.0.0.pre.rc1 spec/features/layer_opacity_spec.rb
geoblacklight-3.6.0 spec/features/layer_opacity_spec.rb
geoblacklight-3.5.0 spec/features/layer_opacity_spec.rb
geoblacklight-4.0.0.pre.alpha.3 spec/features/layer_opacity_spec.rb
geoblacklight-4.0.0.pre.alpha.2 spec/features/layer_opacity_spec.rb
geoblacklight-4.0.0.pre.alpha.1 spec/features/layer_opacity_spec.rb
geoblacklight-4.0.0.pre.alpha spec/features/layer_opacity_spec.rb
geoblacklight-3.4.0 spec/features/layer_opacity_spec.rb