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