Commit 4032bfa4cf8c31da7e03fb5a30c2b5e6485facd0

Authored by Rodrigo Souto
1 parent 325e96fe

search-feature: add a step to select customized select filter

features/search_enterprises.feature
... ... @@ -55,7 +55,7 @@ Feature: search enterprises
55 55 | owner | name | body | homepage |
56 56 | shop1 | Shoes home | This is the <i>homepage</i> 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 |
57 57 When I search enterprises for "shoes"
58   - And I follow "Full"
  58 + And I choose the search filter "Full"
59 59 Then I should see "This is the homepage of" within ".search-enterprise-description"
60 60 And I should see "about sho..." within ".search-enterprise-description"
61 61  
... ...
features/step_definitions/search_steps.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +When /^I choose the search filter "(.*)"$/ do |filter|
  2 + # Wish this worked instead...
  3 + # find("li", :text => filter).click
  4 + page.execute_script("jQuery('li[title=#{filter}]').click();")
  5 +end
... ...