Sha256: aa1c1755e8394d90e42f69c463ae2779ac99c29f9a99417d31dd8013843665eb

Contents?: true

Size: 781 Bytes

Versions: 14

Compression:

Stored size: 781 Bytes

Contents

require 'axe/cucumber/step_definitions'

Given(/^I am on the page$/) do
  @page = Capybara.current_session
  @page.visit(ENV['URL'])
  puts "=====You are currently checking the page====="
  puts @page.current_url
  sleep(1)
end

Then(/^page should have all relevant  "([^"]*)" for the accessibility guideline$/) do |attributes|
  ban = ENV['EXCLUDE'] || "#crapy-selector"
  step 'the page should be accessible checking: #{attributes} but excluding "#{ban}"'
end

Then(/^page should not check section "([^"]*)" for the accessibility guideline$/) do |section|
  step 'the page should be accessible excluding "#{section}"'
end

Then(/^page should check section"([^"]*)" for the accessibility guideline$/) do |section|
  step 'the page should be accessible excluding "#{section}"'
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bddfire-3.0.2 scaffold/accessibility/features/step_definitions/base.rb
bddfire-3.0.1 scaffold/accessibility/features/step_definitions/base.rb
bddfire-3.0.0 scaffold/accessibility/features/step_definitions/base.rb
bddfire-2.0.8 scaffold/accessibility/features/step_definitions/base.rb
bddfire-2.0.7 scaffold/accessibility/features/step_definitions/base.rb
bddfire-2.0.6 scaffold/accessibility/features/step_definitions/base.rb
bddfire-2.0.5 scaffold/accessibility/features/step_definitions/base.rb
bddfire-2.0.4 scaffold/accessibility/features/step_definitions/base.rb
bddfire-2.0.3 scaffold/accessibility/features/step_definitions/base.rb
bddfire-2.0.2 scaffold/accessibility/features/step_definitions/base.rb
bddfire-2.0.1 scaffold/accessibility/features/step_definitions/base.rb
bddfire-2.0.0 scaffold/accessibility/features/step_definitions/base.rb
bddfire-1.9.9 scaffold/accessibility/features/step_definitions/base.rb
bddfire-1.9.8 scaffold/accessibility/features/step_definitions/base.rb