From fb0d276de6baf92b9e42ec902f15ad84b94ba82b Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 8 Nov 2023 03:11:44 +0000 Subject: [PATCH] Add visual diff for home page --- spec/features/home_page_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/features/home_page_spec.rb b/spec/features/home_page_spec.rb index 00475bfac..0813a8425 100644 --- a/spec/features/home_page_spec.rb +++ b/spec/features/home_page_spec.rb @@ -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