Skip to content

Commit

Permalink
fix rubocop errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgarciao committed Dec 5, 2023
1 parent d154e7c commit cb4749f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 33 deletions.
38 changes: 5 additions & 33 deletions spec/features/accessibility_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "rails_helper"

describe "accessibility", type: :feature, js: true do
context "home page" do
context "when visiting home page" do
before do
visit "/"
visit "/catalog"
end

it "complies with wcag" do
Expand All @@ -13,40 +14,11 @@
end
end

context "computing page" do
before do
visit "/computing"
end
it "complies with wcag2aa wcag21a" do
expect(page).to be_axe_clean
.according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa)
end
end

context "consultants page" do
before do
visit "/consultants"
end
it "complies with wcag2aa wcag21a" do
expect(page).to be_axe_clean
.according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa)
end
end

context "specialists page" do
context "when visiting a resource page" do
before do
visit "/specialists"
end
it "complies with wcag2aa wcag21a" do
expect(page).to be_axe_clean
.according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa)
visit "/catalog/resource6"
end
end

context "training page" do
before do
visit "/training"
end
it "complies with wcag2aa wcag21a" do
expect(page).to be_axe_clean
.according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa)
Expand Down
1 change: 1 addition & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
require 'spec_helper'
require 'rspec/rails'
require 'devise'
require "axe-rspec"
# Add additional requires below this line. Rails is not loaded until this point!

# Requires supporting ruby files with custom matchers and macros, etc, in
Expand Down

0 comments on commit cb4749f

Please sign in to comment.