Sha256: 63e6ebd89c624a373ef8478b28bcce6d94c9d0b5c59e7a16d62415553942528b

Contents?: true

Size: 996 Bytes

Versions: 2

Compression:

Stored size: 996 Bytes

Contents

Then /^I enter the break point$/ do
  debugger
  p 'debugger'
end

When /^I open the application$/ do
  When %Q{I go to the home page}
end

When /^I reload the application$/ do
  Capybara.current_session.execute_script <<-JS
    window.location.reload();
  JS
end

When /^I open the application for page with path "([^"]*)"$/ do |path|
  visit('/#' + path)
end

Then /^I should see dialog box titled "([^"]*)"$/ do |title|
  %Q{Then I should see "#{title}" within "span.x-window-header-text"}
end

Then /^I should see page title "([^"]*)"$/ do |title|
  find("title").text.should == title
end

When /^I create a new page title "([^"]*)" for the node with path "([^"]*)"$/ do |title, path|
  When %{I right click the node with path "#{path}"}
  And %{I follow "Create page"}
  Then %{I should see dialog box titled "Create page"}

  When %{I fill in the input with "#{title}" within the dialog box}
  And %{I press "OK" within the dialog box}
  Then %{I should see the node titled "#{title}"}
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rwiki-0.2.2 features/step_definitions/common_steps.rb
rwiki-0.2.1 features/step_definitions/common_steps.rb