Browse Source

fixup! CLDC-4114: Restructure data protection confirmation banner tests

CLDC-4114-update-no-dsa-signing-warning
Samuel Young 2 days ago
parent
commit
a336bd7c5d
  1. 7
      spec/components/data_protection_confirmation_banner_component_spec.rb

7
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.") 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
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 end
context "when org has a DPO" do context "when org has a DPO" do

Loading…
Cancel
Save