mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-05 06:01:46 -04:00
Organisation notes visible on organisation settings page
This commit is contained in:
@@ -218,6 +218,7 @@ def organisation_json(
|
||||
agreement_signed_on_behalf_of_email_address=None,
|
||||
organisation_type='central',
|
||||
request_to_go_live_notes=None,
|
||||
notes=None,
|
||||
):
|
||||
if users is None:
|
||||
users = []
|
||||
@@ -242,6 +243,7 @@ def organisation_json(
|
||||
'domains': domains or [],
|
||||
'request_to_go_live_notes': request_to_go_live_notes,
|
||||
'count_of_live_services': len(services),
|
||||
'notes': notes,
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -691,6 +691,7 @@ def test_organisation_settings_for_platform_admin(
|
||||
'Crown organisation Yes Change',
|
||||
'Data sharing and financial agreement Not signed Change',
|
||||
'Request to go live notes None Change',
|
||||
'Notes No notes yet Change the notes for the organisation',
|
||||
'Default email branding GOV.UK Change',
|
||||
'Default letter branding No branding Change',
|
||||
'Known email domains None Change',
|
||||
@@ -1260,3 +1261,18 @@ def test_post_edit_organisation_go_live_notes_updates_go_live_notes(
|
||||
org_id=organisation_one['id'],
|
||||
_external=True
|
||||
)
|
||||
|
||||
|
||||
def test_organisation_settings_links_to_edit_organisation_notes_page(
|
||||
mocker,
|
||||
mock_get_organisation,
|
||||
organisation_one,
|
||||
platform_admin_client,
|
||||
):
|
||||
response = platform_admin_client.get(url_for(
|
||||
'.organisation_settings', org_id=organisation_one['id']
|
||||
))
|
||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||
assert len(page.find_all(
|
||||
'a', attrs={'href': '/organisations/{}/settings/notes'.format(organisation_one['id'])}
|
||||
)) == 1
|
||||
|
||||
Reference in New Issue
Block a user