diff --git a/features/search_enterprises.feature b/features/search_enterprises.feature index dc78fcb..299f373 100644 --- a/features/search_enterprises.feature +++ b/features/search_enterprises.feature @@ -55,7 +55,7 @@ Feature: search enterprises | owner | name | body | homepage | | shop1 | Shoes home | This is the homepage of Shoes shop! It has a very long and pretty vague description, just so we can test wether the system will correctly create an excerpt of this text. We should probably talk about shoes. | true | When I search enterprises for "shoes" - And I follow "Full" + And I choose the search filter "Full" Then I should see "This is the homepage of" within ".search-enterprise-description" And I should see "about sho..." within ".search-enterprise-description" diff --git a/features/step_definitions/search_steps.rb b/features/step_definitions/search_steps.rb new file mode 100644 index 0000000..b0c320e --- /dev/null +++ b/features/step_definitions/search_steps.rb @@ -0,0 +1,5 @@ +When /^I choose the search filter "(.*)"$/ do |filter| + # Wish this worked instead... + # find("li", :text => filter).click + page.execute_script("jQuery('li[title=#{filter}]').click();") +end -- libgit2 0.21.2