Sha256: d3a2d5986a45543bc46cc127656e279febf730bcab2545f19fa975d9498e9f6c

Contents?: true

Size: 539 Bytes

Versions: 9

Compression:

Stored size: 539 Bytes

Contents

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

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

Then /^I 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 see "([^"]*)" in the search results$/ do |text|
  within ".content" do
    page.should have_content text
  end
end

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
nuker-2.0.0 features/step_definitions/search_features_steps.rb
nuker-1.0.0 features/step_definitions/search_features_steps.rb
wally-0.0.47 features/step_definitions/search_features_steps.rb
wally-0.0.46 features/step_definitions/search_features_steps.rb
wally-0.0.45 features/step_definitions/search_features_steps.rb
wally-0.0.44 features/step_definitions/search_features_steps.rb
wally-0.0.43 features/step_definitions/search_features_steps.rb
wally-0.0.42 features/step_definitions/search_features_steps.rb
wally-0.0.41 features/step_definitions/search_features_steps.rb