Sha256: d904134c59b75b695ff0758df973292796ee7b6bd8a4a8b550f5cda7bd4dbd76
Contents?: true
Size: 824 Bytes
Versions: 8
Compression:
Stored size: 824 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
8 entries across 8 versions & 1 rubygems