Skip to content

Commit

Permalink
Check accessibility and do percy screenshots on new page
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Nov 8, 2023
1 parent 7639351 commit f41c73e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec/features/documentation_pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,23 @@
end
# rubocop:enable RSpec/NoExpectationExample
end

describe "how to lobby your council in the new design" do
before do
sign_in create(:confirmed_user, tailwind_theme: true, name: "Jane Ng")
visit how_to_lobby_your_local_council_path
end

describe "accessibility tests", js: true do
it "passes" do
expect(page).to be_axe_clean
end
end

# rubocop:disable RSpec/NoExpectationExample
it "renders a snapshot for a visual diff", js: true do
page.percy_snapshot("Lobby your council")
end
# rubocop:enable RSpec/NoExpectationExample
end
end

0 comments on commit f41c73e

Please sign in to comment.