Sha256: 8527d002eb21661e869a38938c334ae7e1d538b38e1a007148eaf8df5433acb6

Contents?: true

Size: 826 Bytes

Versions: 28

Compression:

Stored size: 826 Bytes

Contents

Given /^I am viewing "([^"]*)"$/ do |url|
  visit(url)
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 press enter)?$/ do |field, value, enter|
  fill_in(field, :with => value)
  if enter
    find_field(field).native.send_key(:enter)
    #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

28 entries across 28 versions & 1 rubygems

Version Path
RubyApp-0.0.54 features/step_definitions/default_steps.rb
RubyApp-0.0.53 features/step_definitions/default_steps.rb
RubyApp-0.0.52 features/step_definitions/default_steps.rb
RubyApp-0.0.51 features/step_definitions/default_steps.rb
RubyApp-0.0.50 features/step_definitions/default_steps.rb
RubyApp-0.0.49 features/step_definitions/default_steps.rb
RubyApp-0.0.48 features/step_definitions/default_steps.rb
RubyApp-0.0.47 features/step_definitions/default_steps.rb
RubyApp-0.0.46 features/step_definitions/default_steps.rb
RubyApp-0.0.45 features/step_definitions/default_steps.rb
RubyApp-0.0.44 features/step_definitions/default_steps.rb
RubyApp-0.0.43 features/step_definitions/default_steps.rb
RubyApp-0.0.42 features/step_definitions/default_steps.rb
RubyApp-0.0.41 features/step_definitions/default_steps.rb
RubyApp-0.0.30 features/step_definitions/default_steps.rb
RubyApp-0.0.29 features/step_definitions/default_steps.rb
RubyApp-0.0.28 features/step_definitions/default_steps.rb
RubyApp-0.0.27 features/step_definitions/default_steps.rb
RubyApp-0.0.26 features/step_definitions/default_steps.rb
RubyApp-0.0.25 features/step_definitions/default_steps.rb