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