Skip to content

Commit

Permalink
Update testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Yoong committed Sep 3, 2021
1 parent be7edaf commit 4ab99ec
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/functional/past_foreign_secretaries_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ class PastForeignSecretariesControllerTest < ActionController::TestCase
get :index

assert_select "h1", text: "Past Foreign Secretaries"

assert_select "div.featured-profiles" do
assert_select "h2.profiles", text: "Selection of profiles"
assert_select "li.person", 10
end
assert_select ".gem-c-heading.govuk-heading-l.gem-c-heading--padding.gem-c-heading--border-top-2", text: "Selection of profiles"
assert_select "div.gem-c-image-card", 10
end

test "GET :show renders 'not found' for invalid foreign secretary name" do
Expand Down

0 comments on commit 4ab99ec

Please sign in to comment.