Sha256: 05625d9c4aff6dacea253892aad563710f10483642c07c72c9b26ef7b897d894

Contents?: true

Size: 799 Bytes

Versions: 8

Compression:

Stored size: 799 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

feature 'tilejson layer' do
  before do
    WebMock.disable_net_connect!(allow_localhost: true, allow: 'chromedriver.storage.googleapis.com')
  end

  after do
    WebMock.allow_net_connect!
  end

  scenario 'displays tilejson layer', js: true do
    # Mock tilejson manifest url
    stub_request(:get, 'https://map-tiles-staging.princeton.edu/mosaicjson/tilejson.json?id=2a91d82c541c426cb787cc62afe8f248')
      .to_return(status: 200, body: read_fixture('manifests/tilejson.json'))

    visit solr_document_path('princeton-fk4544658v-tilejson')
    expect(page).to have_css '.leaflet-control-zoom', visible: :visible
    expect(page).to have_css "img[src*='https://map-tiles-staging.princeton.edu/mosaicjson/tiles/WebMercatorQuad']"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 spec/features/tilejson_spec.rb
geoblacklight-3.8.0 spec/features/tilejson_spec.rb
geoblacklight-4.0.0 spec/features/tilejson_spec.rb
geoblacklight-4.0.0.pre.rc3 spec/features/tilejson_spec.rb
geoblacklight-3.7.0 spec/features/tilejson_spec.rb
geoblacklight-4.0.0.pre.rc2 spec/features/tilejson_spec.rb
geoblacklight-4.0.0.pre.rc1 spec/features/tilejson_spec.rb
geoblacklight-3.6.0 spec/features/tilejson_spec.rb