Skip to content

Commit

Permalink
Merge pull request #1658 from alphagov/add-font-rendering-test
Browse files Browse the repository at this point in the history
Add a test for GDS Transport font loading
  • Loading branch information
DavidBiddle authored Dec 9, 2024
2 parents 2699672 + 02ddf66 commit 266a099
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/features/components/preview_components_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@
expect_component_to_have_no_axe_errors(page)
end
end

it "checks GDS Transport font is available" do
visit "/preview/"
font_loaded = evaluate_script("document.fonts.check('12px GDS Transport')")

expect(font_loaded).to be true
end
end

0 comments on commit 266a099

Please sign in to comment.