Organisation notes visible on organisation settings page

This commit is contained in:
Pea Tyczynska
2021-02-05 10:52:08 +00:00
parent 71198bbb07
commit f0d94a009e
7 changed files with 51 additions and 3 deletions

View File

@@ -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,
}

View File

@@ -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