Sha256: fdbf97a18990209956cb59ad03344d7773379bd67a7b59fad16ea33e41d8f029

Contents?: true

Size: 543 Bytes

Versions: 10

Compression:

Stored size: 543 Bytes

Contents

Given /^I am on the search page$/ do
  visit "/search"
end

When /^I search for "([^"]*)"$/ do |text|
  fill_in 'q', :with => text
  click_button 'Search'
end

Then /^I should see a search result link to "([^"]*)" with the url "([^"]*)"$/ do |text, url|
  within ".content" do
    page.should have_link text, :href => url
  end
end

Then /^I should see "([^"]*)" in the search results$/ do |text|
  within ".content" do
    page.should have_content text
  end
end

Then /^I should see the html:$/ do |html|
  page.body.should include html
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wally-0.0.33 features/step_definitions/search_features_steps.rb
wally-0.0.32 features/step_definitions/search_features_steps.rb
wally-0.0.31 features/step_definitions/search_features_steps.rb
wally-0.0.30 features/step_definitions/search_features_steps.rb
wally-0.0.29 features/step_definitions/search_features_steps.rb
wally-0.0.28 features/step_definitions/search_features_steps.rb
wally-0.0.27 features/step_definitions/search_features_steps.rb
wally-0.0.26 features/step_definitions/search_features_steps.rb
wally-0.0.25 features/step_definitions/search_features_steps.rb
wally-0.0.24 features/step_definitions/search_features_steps.rb