From 4ab99ecdc34500df845c4af37f1519738930617c Mon Sep 17 00:00:00 2001 From: Chris Yoong Date: Tue, 24 Aug 2021 14:36:09 +0100 Subject: [PATCH] Update testing --- .../functional/past_foreign_secretaries_controller_test.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/functional/past_foreign_secretaries_controller_test.rb b/test/functional/past_foreign_secretaries_controller_test.rb index e5c58215a0f6..cf308df4b822 100644 --- a/test/functional/past_foreign_secretaries_controller_test.rb +++ b/test/functional/past_foreign_secretaries_controller_test.rb @@ -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