expect(render).tohave_selector("p",text:"Your organisation does not own stock. To create logs your stock owner(s) must accept the Data Sharing Agreement on CORE.")
end
end
end
end
context"when org does not have a DPO"do
@ -98,6 +150,20 @@ RSpec.describe DataProtectionConfirmationBannerComponent, type: :component do
expect(render).tohave_selector("p",text:"Your data protection officer must accept the Data Sharing Agreement on CORE before you can create any logs.")
expect(render).tohave_selector("p",text:"You can ask: #{dpo.name}")
end
context"and has a parent organisation that owns stock and has signed DSA"do
expect(question.unanswered_error_message).toeq("You must show the DLUHC privacy notice to the tenant before you can submit this log.")
it"returns correct unanswered_error_message"do
expect(question.unanswered_error_message).toeq("You must show or give access to the DLUHC privacy notice to the tenant before you can submit this log.")
expect(question.unanswered_error_message).toeq("You must show or give access to the DLUHC privacy notice to the buyer before you can submit this log.")
end
end
end
it"returns correct unanswered_error_message"do
expect(question.unanswered_error_message).toeq("You must show the DLUHC privacy notice to the buyer before you can submit this log.")
expect(question.unanswered_error_message).toeq("You must show or give access to the DLUHC privacy notice to the buyers before you can submit this log.")