Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
fix Ambiguous match, found 2 elements matching field "search" error
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Feb 22, 2015
1 parent a4f23b2 commit 9f9a2c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/search_integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ def teardown
end

test 'can search places that login user created' do
fill_in 'search', with: '神社'
find('input#search').trigger('click')
within(:css, "form.quick-search") do
fill_in 'search', with: '神社'
end
find('.quick-search').trigger('click')

assert_match '大麻比古神社', page.text
assert_match '貴船神社', page.text
Expand Down

0 comments on commit 9f9a2c2

Please sign in to comment.