Sha256: 02f185e5faf20e9f4393a119ea434585181dc6494e8ad11a629472529a77a916

Contents?: true

Size: 397 Bytes

Versions: 11

Compression:

Stored size: 397 Bytes

Contents

require 'spec_helper'

feature 'Layer inspection', js: true do
  scenario 'clicking map should trigger inspection' do
    table_values = { values: [['Attribute']] }
    expect_any_instance_of(WmsLayer).to receive(:get_feature_info).and_return(table_values)
    visit catalog_path('mit-us-ma-e25zcta5dct-2000')
    find('#map').click
    expect(page).to have_css('th', text: 'Attribute')
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
geoblacklight-0.3.2 spec/features/layer_inspection_spec.rb
geoblacklight-0.3.1 spec/features/layer_inspection_spec.rb
geoblacklight-0.3.0 spec/features/layer_inspection_spec.rb
geoblacklight-0.2.2 spec/features/layer_inspection_spec.rb
geoblacklight-0.2.1 spec/features/layer_inspection_spec.rb
geoblacklight-0.2.0 spec/features/layer_inspection_spec.rb
geoblacklight-0.1.0 spec/features/layer_inspection_spec.rb
geoblacklight-0.0.8 spec/features/layer_inspection_spec.rb
geoblacklight-0.0.7 spec/features/layer_inspection_spec.rb
geoblacklight-0.0.6 spec/features/layer_inspection_spec.rb
geoblacklight-0.0.5 spec/features/layer_inspection_spec.rb