Skip to content

Commit

Permalink
Fix tests to trigger spatial search
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Graves committed Nov 4, 2014
1 parent b968405 commit f50bba6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/features/home_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
end
end
scenario 'clicking map search should create a spatial search' do
find('#map').double_click
within '#map' do
find('a.search-control').click
expect(page.current_url).to match /bbox=/
Expand All @@ -39,9 +40,7 @@

scenario 'clicking map search should retain current search parameters' do
visit '/?f[dc_subject_sm][]=polygon&f[dc_subject_sm][]=boundaries'
within '#map' do
find('a.search-control').click
end
find('#map').double_click
within '#appliedParams' do
expect(page).to have_content('Subject polygon')
expect(page).to have_content('Subject boundaries')
Expand Down

0 comments on commit f50bba6

Please sign in to comment.