Skip to content

Commit

Permalink
fix pending specs
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Jul 1, 2016
1 parent c6791f1 commit 178657f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/features/index_page_map_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
require 'spec_helper'

feature 'Index page map', js: true do
pending 'renders a leaflet map' do
visit search_catalog_path(q: 'medicine', view: 'maps')
it 'renders a leaflet map' do
visit search_catalog_path(q: 'strong', view: 'heatmaps')
expect(page).to have_css '.leaflet-map-pane'
# Zoomed to world
expect(page).to have_css 'img[src="http://a.basemaps.cartocdn.com/light_all/1/0/0.png"]'
expect(page).to have_css '#index-map-sidebar', visible: false
click('svg g path')
page.find('svg g path').click
expect(page).to have_css '#index-map-sidebar', visible: true
expect(page)
.to have_css 'h3.media-heading a', text: '"Strong Medicine speaks"'
end
end

0 comments on commit 178657f

Please sign in to comment.