Sha256: 919cd570e9666e3be48eedaf07d7fbd2d97b0cdc2dc48323aae0878df31e89f4

Contents?: true

Size: 1.02 KB

Versions: 36

Compression:

Stored size: 1.02 KB

Contents

Given /^content exists$/ do
  @_content = Factory(:page_a)
end

When /^I create a new root$/ do
  visit new_noodall_admin_node_path
end

Then /^I should be able select a template from the following:$/ do |table|
  table.hashes.each do |row|
    visit new_noodall_admin_node_path
    choose(row['Template'])
    fill_in("Title", :with => "A title")
    click_button "Create"
    page.should have_content "#{row['Template']} 'A title' was successfully created."
  end
end

Then /^I should see a tree style list that contains all content$/ do
  #Roots
  page.should have_css("ol#sitemap-node-tree-root li:nth(#{Noodall::Node.roots.count})")

  page.should have_css("ol#sitemap-node-tree-root li li")

end


Then /^I should see a page of xml$/ do
  page.should have_xpath("//urlset")
end

When /^I view the page "([^"]*)" as "([^"]*)"$/ do |title, format|
  visit node_path(Noodall::Node.find_by_title(title), :format => format)
end

Then /^I should see (\d+) nodes?$/ do |count|
  page.should have_selector "tr.node", :count => count.to_i
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
noodall-ui-0.5.15 features/step_definitions/node_steps.rb
noodall-ui-0.5.14 features/step_definitions/node_steps.rb
noodall-ui-0.5.13 features/step_definitions/node_steps.rb
noodall-ui-0.5.12 features/step_definitions/node_steps.rb
noodall-ui-0.5.11 features/step_definitions/node_steps.rb
noodall-ui-0.4.11 features/step_definitions/node_steps.rb
noodall-ui-0.4.10 features/step_definitions/node_steps.rb
noodall-ui-0.5.10 features/step_definitions/node_steps.rb
noodall-ui-0.5.9 features/step_definitions/node_steps.rb
noodall-ui-0.4.9 features/step_definitions/node_steps.rb
noodall-ui-0.5.8 features/step_definitions/node_steps.rb
noodall-ui-0.4.8 features/step_definitions/node_steps.rb
noodall-ui-0.4.7 features/step_definitions/node_steps.rb
noodall-ui-0.5.7 features/step_definitions/node_steps.rb
noodall-ui-0.5.6 features/step_definitions/node_steps.rb
noodall-ui-0.5.5 features/step_definitions/node_steps.rb
noodall-ui-0.5.4 features/step_definitions/node_steps.rb
noodall-ui-0.5.3 features/step_definitions/node_steps.rb
noodall-ui-0.5.2 features/step_definitions/node_steps.rb
noodall-ui-0.5.1 features/step_definitions/node_steps.rb