Sha256: ee4df92bd3afa918199fd03f1f2939d33e4bb13ef54c2211069fa4dd00a0f268

Contents?: true

Size: 691 Bytes

Versions: 8

Compression:

Stored size: 691 Bytes

Contents

require 'spec_helper'

feature 'Configurable basemap', js: true do
  scenario 'defaults to positron' do
    visit root_path
    expect(page).to have_css "img[src*='carto']"
  end
  feature 'without provided basemap config' do
    before do
      CatalogController.blacklight_config.basemap_provider = nil
    end
    scenario 'has Carto map' do
      visit root_path
      expect(page).to have_css "img[src*='carto']"
    end
  end
  feature 'using darkMatter' do
    before do
      CatalogController.blacklight_config.basemap_provider = 'darkMatter'
    end
    scenario 'has darkMatter map' do
      visit root_path
      expect(page).to have_css "img[src*='dark_all']"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geoblacklight-2.2.1 spec/features/configurable_basemap_spec.rb
geoblacklight-2.2.0 spec/features/configurable_basemap_spec.rb
geoblacklight-2.1.2 spec/features/configurable_basemap_spec.rb
geoblacklight-2.1.1 spec/features/configurable_basemap_spec.rb
geoblacklight-2.1.0 spec/features/configurable_basemap_spec.rb
geoblacklight-2.0.0 spec/features/configurable_basemap_spec.rb
geoblacklight-1.9.1 spec/features/configurable_basemap_spec.rb
geoblacklight-1.9.0 spec/features/configurable_basemap_spec.rb