Sha256: 9ddf5e237287d635cb5d916d3e8267a0c50777b3b474c9959f004f41a136dca8
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
Then /^the form should have inline error messages$/ do page.should have_css(".error") end When /^the "([^"]*)" field should have autocomplete off$/ do |field| field = page.find_field(field) field["autocomplete"].should == "off" end Then /^"([^"]*)" should have the error "([^"]*)"$/ do |field, error| field = page.find_field(field) field.find(:xpath, "following-sibling::p[@class='inline-errors'][contains(text(), '#{error}')]").should_not be_nil end Then /^I there should be a link to the help site$/ do page.should have_css("a[href*='help.example.com']") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.2.6 | lib/generators/saucy/features/templates/step_definitions/html_steps.rb |