From 287d52539628b30617267434e646bc1f8a8e3afa Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 13 Dec 2023 23:51:48 +0000 Subject: [PATCH] Also render search page in percy --- spec/features/search_for_applications_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/features/search_for_applications_spec.rb b/spec/features/search_for_applications_spec.rb index 6cb54f91f..ffd769a50 100644 --- a/spec/features/search_for_applications_spec.rb +++ b/spec/features/search_for_applications_spec.rb @@ -71,13 +71,19 @@ describe "accessibility tests for search applications page in new design", 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 address_applications_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("Application search") + end + # rubocop:enable RSpec/NoExpectationExample end # Having trouble getting this to work