Sha256: ab75d30fd8174623fcd97a401096d84aaf8d18103961081f22b2dc3fe70b1b1e
Contents?: true
Size: 687 Bytes
Versions: 3
Compression:
Stored size: 687 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 "([^"]*)" 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 /^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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
RubyApp-0.0.8 | features/step_definitions/default_steps.rb |
RubyApp-0.0.7 | features/step_definitions/default_steps.rb |
RubyApp-0.0.6 | features/step_definitions/default_steps.rb |