Skip to content

Commit

Permalink
Also render search page in percy
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Dec 13, 2023
1 parent 1471449 commit 287d525
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/features/search_for_applications_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 287d525

Please sign in to comment.