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

Version Path
editorial_logic-1.4.5 features/step_definitions/general_steps.rb
editorial_logic-1.4.4 features/step_definitions/general_steps.rb
editorial_logic-1.4.3 features/step_definitions/general_steps.rb
editorial_logic-1.4.2 features/step_definitions/general_steps.rb
editorial_logic-1.4.1 features/step_definitions/general_steps.rb
editorial_logic-1.4.0 features/step_definitions/general_steps.rb
editorial_logic-1.3.3 features/step_definitions/general_steps.rb
editorial_logic-1.3.2 features/step_definitions/general_steps.rb
editorial_logic-1.3.1 features/step_definitions/general_steps.rb
editorial_logic-1.3.0 features/step_definitions/general_steps.rb
editorial_logic-1.1.6 features/step_definitions/general_steps.rb
editorial_logic-1.1.5 features/step_definitions/general_steps.rb
editorial_logic-1.1.4 features/step_definitions/general_steps.rb
editorial_logic-1.1.3 features/step_definitions/general_steps.rb
editorial_logic-1.1.2 features/step_definitions/general_steps.rb
editorial_logic-1.1.1 features/step_definitions/general_steps.rb
editorial_logic-1.1.0 features/step_definitions/general_steps.rb