mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Count of orgs and live services for platform admin
This makes it consistent that an option which contains more options has
a hint about how many options it contains.
Also adds a formatter to get us ready for 1,000 services 🎉
This commit is contained in:
@@ -157,16 +157,21 @@ def test_choose_account_should_show_choose_accounts_page_if_no_services(
|
||||
def test_choose_account_should_should_organisations_link_for_platform_admin(
|
||||
client_request,
|
||||
platform_admin_user,
|
||||
mock_get_organisations,
|
||||
mock_get_orgs_and_services,
|
||||
mock_get_organisation_services,
|
||||
mock_get_service_and_organisation_counts,
|
||||
):
|
||||
client_request.login(platform_admin_user)
|
||||
|
||||
page = client_request.get('main.choose_account')
|
||||
|
||||
first_link = page.select_one('.browse-list-item a')
|
||||
first_item = page.select_one('.browse-list-item')
|
||||
first_link = first_item.select_one('a')
|
||||
first_hint = first_item.select_one('.browse-list-hint')
|
||||
assert first_link.text == 'All organisations'
|
||||
assert first_link['href'] == url_for('main.organisations')
|
||||
assert normalize_spaces(first_hint.text) == '3 organisations, 9,999 live services'
|
||||
|
||||
|
||||
def test_choose_account_should_show_back_to_service_link(
|
||||
|
||||
@@ -34,7 +34,7 @@ def test_non_logged_in_user_can_see_homepage(
|
||||
assert normalize_spaces(page.select_one('#whos-using-notify').text) == (
|
||||
'Who’s using GOV.UK Notify '
|
||||
'Services '
|
||||
'9999 services '
|
||||
'9,999 services '
|
||||
'Organisations '
|
||||
'111 organisations '
|
||||
'See the list of services and organisations.'
|
||||
|
||||
@@ -3647,6 +3647,8 @@ def test_service_switch_can_upload_document_lets_contact_details_be_added_and_sh
|
||||
def test_archive_service_after_confirm(
|
||||
client_request,
|
||||
mocker,
|
||||
mock_get_organisations,
|
||||
mock_get_service_and_organisation_counts,
|
||||
mock_get_organisations_and_services_for_user,
|
||||
user,
|
||||
fake_uuid,
|
||||
|
||||
Reference in New Issue
Block a user