Sha256: 3f5cba219043c614ec771bbbead81b4a3372b64755686dd2841055a3e6e3dfcd

Contents?: true

Size: 989 Bytes

Versions: 20

Compression:

Stored size: 989 Bytes

Contents

# frozen_string_literal: true
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
  feature 'using openstreetmapHot' do
    before do
      CatalogController.blacklight_config.basemap_provider = 'openstreetmapHot'
    end
    scenario 'has openstreetmapHot map' do
      visit root_path
      expect(page).to have_css "img[src*='hot']"
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 spec/features/configurable_basemap_spec.rb
geoblacklight-3.8.0 spec/features/configurable_basemap_spec.rb
geoblacklight-4.0.0 spec/features/configurable_basemap_spec.rb
geoblacklight-4.0.0.pre.rc3 spec/features/configurable_basemap_spec.rb
geoblacklight-3.7.0 spec/features/configurable_basemap_spec.rb
geoblacklight-4.0.0.pre.rc2 spec/features/configurable_basemap_spec.rb
geoblacklight-4.0.0.pre.rc1 spec/features/configurable_basemap_spec.rb
geoblacklight-3.6.0 spec/features/configurable_basemap_spec.rb
geoblacklight-3.5.0 spec/features/configurable_basemap_spec.rb
geoblacklight-4.0.0.pre.alpha.3 spec/features/configurable_basemap_spec.rb
geoblacklight-4.0.0.pre.alpha.2 spec/features/configurable_basemap_spec.rb
geoblacklight-4.0.0.pre.alpha.1 spec/features/configurable_basemap_spec.rb
geoblacklight-4.0.0.pre.alpha spec/features/configurable_basemap_spec.rb
geoblacklight-3.4.0 spec/features/configurable_basemap_spec.rb
geoblacklight-3.3.1 spec/features/configurable_basemap_spec.rb
geoblacklight-3.3.0 spec/features/configurable_basemap_spec.rb
geoblacklight-3.2.0 spec/features/configurable_basemap_spec.rb
geoblacklight-3.1.0 spec/features/configurable_basemap_spec.rb
geoblacklight-3.0.1 spec/features/configurable_basemap_spec.rb
geoblacklight-3.0.0 spec/features/configurable_basemap_spec.rb