Sha256: 926c96211d92f98c48acee9f745975d615b76397f370fa4998d5664ecdc80b1a

Contents?: true

Size: 841 Bytes

Versions: 94

Compression:

Stored size: 841 Bytes

Contents

Given /^there is content that can be searched$/ do
  Given %q{the website has been populated with content based on the site map}
  3.times do |i|
    Factory(:page_a, :title => "My Searchable Page #{i}", :publish => true)
  end
  top_hit = Factory(:page_a, :title => "My Extra Searchable Page", :description => "My Extra Searchable Page", :publish => true)
  3.times do |i|
    Factory(:page_a, :title => "My Unfit Page #{i}", :publish => true)
  end
end

Given /^I enter a search term in the search input$/ do
  visit root_path
  fill_in 'q', :with => 'Searchable'
end

Then /^I should see a paginated list of content that matches my search term ordered by relevance$/ do
  # save_and_open_page
  page.should have_css('dl#search-results dt', :count => 4)
  within("dl#search-results dt:first") { click_link "My Extra Searchable Page" }
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
noodall-ui-0.5.0.pre.10 features/step_definitions/search_steps.rb
noodall-ui-0.5.0.pre.9 features/step_definitions/search_steps.rb
noodall-ui-0.5.0.pre.8 features/step_definitions/search_steps.rb
noodall-ui-0.5.0.pre.7 features/step_definitions/search_steps.rb
noodall-ui-0.5.0.pre.6 features/step_definitions/search_steps.rb
noodall-ui-0.5.0.pre.5 features/step_definitions/search_steps.rb
noodall-ui-0.5.0.pre.4 features/step_definitions/search_steps.rb
noodall-ui-0.5.0.pre.3 features/step_definitions/search_steps.rb
noodall-ui-0.5.0.pre.2 features/step_definitions/search_steps.rb
noodall-ui-0.4.6 features/step_definitions/search_steps.rb
noodall-ui-0.5.0.pre.1 features/step_definitions/search_steps.rb
noodall-ui-0.3.19 features/step_definitions/search_steps.rb
noodall-ui-0.4.5 features/step_definitions/search_steps.rb
noodall-ui-0.4.4 features/step_definitions/search_steps.rb
noodall-ui-0.4.1 features/step_definitions/search_steps.rb
noodall-ui-0.4.0 features/step_definitions/search_steps.rb
noodall-ui-0.3.17 features/step_definitions/search_steps.rb
noodall-ui-0.3.16 features/step_definitions/search_steps.rb
noodall-ui-0.3.15 features/step_definitions/search_steps.rb
noodall-ui-0.3.14 features/step_definitions/search_steps.rb