Sha256: ccfea9743bcb801f498a7410cc349ec2714890fb7e0312480a362f7d16e28fd1

Contents?: true

Size: 1.13 KB

Versions: 12

Compression:

Stored size: 1.13 KB

Contents

Given /^I am viewing "([^"]*)"$/ do |url|
  visit("#{url}?show_event_error=false")
end

When /^I refresh the page$/ do
  visit(current_path)
end

Then /^I should (not )?see "([^"]*)"$/ do |negative, text|
  unless negative
    page.should have_content(text)
  else
    page.should_not have_content(text)
  end
end

When /^I click "([^"]*)"$/ do |text|
  click_on(text)
end

When /^I fill in the "([^"]*)" field with "([^"]*)"( and I change focus)?$/ do |field, value, change_focus|
  fill_in(field, :with => value)
  if change_focus
    find('body').click
  end
end

Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value|
  field_labeled(field).value.should =~ /#{value}/
end

When /^I (un)?check the "([^"]*)" field$/ do |uncheck, field|
  unless uncheck
    check(field)
  else
    uncheck(field)
  end
end

Then /^the "([^\"]*)" field should be (un)?checked$/ do |field, unchecked|
  unless unchecked
    page.should have_checked_field(field)
  else
    page.should_not have_checked_field(field)
  end
end

Then /^show me the page$/ do
  save_and_open_page
end

When /^I wait (\d+) seconds$/ do |interval|
  sleep(interval.to_f)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
RubyApp-0.0.75 features/step_definitions/default_steps.rb
RubyApp-0.0.74 features/step_definitions/default_steps.rb
RubyApp-0.0.73 features/step_definitions/default_steps.rb
RubyApp-0.0.72 features/step_definitions/default_steps.rb
RubyApp-0.0.71 features/step_definitions/default_steps.rb
RubyApp-0.0.70 features/step_definitions/default_steps.rb
RubyApp-0.0.69 features/step_definitions/default_steps.rb
RubyApp-0.0.68 features/step_definitions/default_steps.rb
RubyApp-0.0.64 features/step_definitions/default_steps.rb
RubyApp-0.0.63 features/step_definitions/default_steps.rb
RubyApp-0.0.62 features/step_definitions/default_steps.rb
RubyApp-0.0.61 features/step_definitions/default_steps.rb