Sha256: 07a4417919d2723fc3fe199badc26eff89b19407ccb2fb987caed33ed99c9f4a
Contents?: true
Size: 524 Bytes
Versions: 17
Compression:
Stored size: 524 Bytes
Contents
include BeValidAsset When /^I visit the url "([^"]*)"$/ do |url| visit url end Then %r/the page should be valid HTML/ do page.body.should be_valid_xhtml end Then %r/the (.+) element with the id (.+) should not be visible/ do |elem, id| page.has_xpath?("//#{elem}[@style='display:none' and @id='#{id}']") end Then %r/the (.+) element with the id (.+) should be visible/ do |elem, id| page.has_xpath?("//#{elem}[@id='#{id}']") && (page.should have_no_xpath("//#{elem}[@style='display:none' and @id='#{id}']")) end
Version data entries
17 entries across 17 versions & 1 rubygems