Sha256: 785b47568e8f3265b34cf8ab302790258cb98978a39b55081e7e7f5bc23d7de0

Contents?: true

Size: 959 Bytes

Versions: 2

Compression:

Stored size: 959 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
  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

2 entries across 2 versions & 1 rubygems

Version Path
geoblacklight-2.4.0 spec/features/configurable_basemap_spec.rb
geoblacklight-2.3.0 spec/features/configurable_basemap_spec.rb