From a336bd7c5d258a0bf561e7ba10bdb7999f3ebdf3 Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Mon, 2 Feb 2026 15:15:58 +0000 Subject: [PATCH] fixup! CLDC-4114: Restructure data protection confirmation banner tests --- .../data_protection_confirmation_banner_component_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/components/data_protection_confirmation_banner_component_spec.rb b/spec/components/data_protection_confirmation_banner_component_spec.rb index 6dbb1e666..e5674c15d 100644 --- a/spec/components/data_protection_confirmation_banner_component_spec.rb +++ b/spec/components/data_protection_confirmation_banner_component_spec.rb @@ -36,6 +36,13 @@ RSpec.describe DataProtectionConfirmationBannerComponent, type: :component do expect(render).to have_selector("p", text: "To create logs your organisation must state a data protection officer. They must sign the Data Sharing Agreement.") end end + + context "when org does have a signed data sharing agreement" do + it "does not display banner" do + expect(component.display_banner?).to eq(false) + expect(render.content).to be_empty + end + end end context "when org has a DPO" do