Skip to content

Commit

Permalink
Add visual diff for home page
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Nov 8, 2023
1 parent cc1e13e commit fb0d276
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/features/home_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@

describe "accessibility tests", js: true do
before do
sign_in create(:confirmed_user, tailwind_theme: true)
sign_in create(:confirmed_user, tailwind_theme: true, name: "Jane Ng")
visit root_path
end

it "passes" do
expect(page).to be_axe_clean
end

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

0 comments on commit fb0d276

Please sign in to comment.