Sha256: bbd59cf5913bf16561053a8cdabe710245b82110bb1d24e38133092a783e4a5b

Contents?: true

Size: 846 Bytes

Versions: 2

Compression:

Stored size: 846 Bytes

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)
  #sleep 1
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
    #sleep 1
  end
end

Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value|
  field_labeled(field).value.should =~ /#{value}/
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

2 entries across 2 versions & 1 rubygems

Version Path
RubyApp-0.0.57 features/step_definitions/default_steps.rb
RubyApp-0.0.56 features/step_definitions/default_steps.rb