mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-13 02:18:50 -04:00
State when organisation has no live services
The page looks broken otherwise.
This commit is contained in:
@@ -106,5 +106,11 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="keyline-block govuk-!-margin-top-2"></div>
|
||||
{% if not services %}
|
||||
<p class="govuk-body govuk-hint">
|
||||
{{ current_org.name }} has no live services on GOV.UK Notify
|
||||
</p>
|
||||
<div class="keyline-block govuk-!-margin-top-2"></div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -74,6 +74,9 @@ def test_view_organisation_shows_the_correct_organisation(
|
||||
)
|
||||
|
||||
assert normalize_spaces(page.select_one('h1').text) == 'Usage'
|
||||
assert normalize_spaces(page.select_one('.govuk-hint').text) == (
|
||||
'Test 1 has no live services on GOV.UK Notify'
|
||||
)
|
||||
|
||||
|
||||
def test_page_to_create_new_organisation(
|
||||
@@ -435,6 +438,9 @@ def test_organisation_services_shows_live_services_and_usage(
|
||||
assert normalize_spaces(usage_rows[7].text) == "£42.00 spent on text messages"
|
||||
assert normalize_spaces(usage_rows[8].text) == "£0.00 spent on letters"
|
||||
|
||||
# Ensure there’s no ‘this org has no services message’
|
||||
assert not page.select('.govuk-hint')
|
||||
|
||||
|
||||
@freeze_time("2020-02-20 20:20")
|
||||
@pytest.mark.parametrize('financial_year, expected_selected', (
|
||||
|
||||
Reference in New Issue
Block a user