From 82e89ba1a6ddb40e5547dad581f922501ced2f41 Mon Sep 17 00:00:00 2001 From: Jo Humphrey <31373245+jamdelion@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:22:23 +0000 Subject: [PATCH] Add test for default disclaimer text --- .../PlanningConstraints/Public.test.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.test.tsx b/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.test.tsx index eb3e1e4a11..c089162194 100644 --- a/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.test.tsx +++ b/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.test.tsx @@ -239,4 +239,21 @@ describe("following a FindProperty component", () => { expect(negativeConstraintsContainer).toBeVisible(); expect(getByRole("heading", { name: /Ecology/ })).toBeVisible(); }); + + test("default disclaimer text should render if none provided", async () => { + const { queryByText } = setup( + , + ); + expect( + queryByText( + "This page does not include information about historic planning conditions that may apply to this property.", + ), + ).toBeVisible(); + }); });